Hello! Prospective Rudderstack Open Source user an...
# support
f
Hello! Prospective Rudderstack Open Source user and I had a question about consent management: We use OneTrust and it looks like it is supported based on this. We collect consent for client-side tracking and use that for our GTM implementation. However, we currently don't do server-to-server analytics so i was unsure if the consent collected via OneTrust and configured into Rudderstack would apply to server-to-server tracking? Is the key there to have the same user identifier on the client & server so it know how to apply the consent from the client to the server? Looking for some info on how this would be configured before we decide to move forward. Thanks!
m
Hey There! šŸ‘‹ Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
f
cc @gentle-petabyte-80785
šŸ™Œ 1
m
Hi Seiji, Consent collected via One-trust should be applied to server to server tracking as well. So when you configure the destination you can provide the OneTrust cookie category for the destination. See image Based on the customer's permission the events should be sent/dropped for each cookie category.
f
Hey @shy-kite-21035 - that makes sense but I was wondering how that happens if OneTrust collects consent on the client and we send an event from the server. How does Rudderstack know the consent the user selected on the frontend if we send the event from the backend? Is there a specific identifier we need to use or something like that?
m
Hey Seiji so you set up One-trust on RudderStack . Then the standard practice is to load the RudderStack SDK only if the customer accept some of the cookies (or accepts the mandatory cookies). Following this an object is added to the source config which contains the categories accepted .Not sure of the exact implementation here but broadly speaking this is how it works. Then since every event is sent to RS, the event will be sent to the cloud destination based on the category.
f
Hmm ok, i think the missing information for me is how Rudderstack knows a user event sent from the client is the same users if we send the event from the backend. It seems like there needs to be a unique identifier sent that is common between the client & server
m
Oh ok. So I understand what you are saying. You are not talking about device-mode and cloud-mode but about how to prevent server-side events being sent to a destination (say FB) if the user does not give permission to events being sent to the destination type. This seems like a standard issue and I ll see how it is being solved and will consult with the team
So based on my current understanding currently there is no way Rudderstack can prevent server to server communication of data for consent captured on the front-end
f
oh gotcha. thanks for digging in @shy-kite-21035 - hmm so it sounds like we'll need to collect consent for server-to-server tracking on our own and prevent events from firing to rudderstack ourselves. I'm wondering if this might be a feature at some point? The legal advice we've gotten is that consent needs to be respected for both client & server events so we're having to collect consent twice now. I imagine a potential solution could be having the same user identifier (UUID) on the front & backend so that rudderstack can look up the consent for the user before sending the event
m
The legal advice we've gotten is that consent needs to be respected for both client & server events so we're having to collect consent twice now.
I am unable to understand why you must collect consent twice. Won't it be sufficient to collect it once. Why does the user care if it is server-side or client-side, he is merely saying don't use my data for some purpose (marketing / advertising / analytics)
I imagine a potential solution could be having the same user identifier (UUID) on the front & backend so that rudderstack can look up the consent for the user before sending the event
RudderStack can't lookup consent since it does not have the user data. The only way to do this would be to send the consent data with the event and filter it out on the rudder server. I am also asking the team for any further guidance on this topic.
f
> The legal advice we've gotten is that consent needs to be respected for both client & server events so we're having to collect consent twice now.
I am unable to understand why you must collect consent twice. Won't it be sufficient to collect it once. Why does the user care if it is server-side or client-side, he is merely saying don't use my data for some purpose (marketing / advertising / analytics)
The user shouldn't care if their consent is for client or server side so you're exactly right. However, what I'm pointing out is that since the consent collected via OneTrust isn't going to be respected by server-side calls for Rudderstack, we're going to have to store the consent data in our own system. It's not entirely clear to me if we can "hook" into the consent preference that the user provides to OneTrust and save it into our system or if we need to collect it again. We essentially need to rollout our own visitor/user identifier and be able to stitch all of that together. It's not a light lift to build this type of functionality and it doesn't really add to our core business.
> I imagine a potential solution could be having the same user identifier (UUID) on the front & backend so that rudderstack can look up the consent for the user before sending the event
RudderStack can't lookup consent since it does not have the user data. The only way to do this would be to send the consent data with the event and filter it out on the rudder server.
I am also asking the team for any further guidance on this topic.
Ah interesting. I made some assumptions on how your system works. I thought that there was a "user profile" that has a UUID and attributes associated with it like their consent preference. And when a client event is triggered, we can send the UUID + event details that then looks up attributes of the user. My potential solution relies on something like that so that we can store the UUID on the server and send that along with the server event, which would then look up attributes of the user including the consent provided from the client interaction.
s
So talking to the team they mentioned that RudderStack sends these keys within the event, specifically in the context.consentManagement object
Copy code
"context": {
  "app": {...},
  "device": {...} 
  "consentmanagement": {
      "deniedConsentIds": [],
      "allowedConsentIds": [
          "C0001",
          "C0002"
      ],
      "provider": "oneTrust",
      "resolutionStrategy": "and"
  }
}
If you can send this data back with the backend event, then we can use it to filter our events Note:- • You should be connected to the same destination, • We would need to test this out thoroughly
f
Got it, thanks! We can try this out and see how it goes!