Highlighted

Server to Server and data?

Silver Contributor
Silver Contributor
Hi, I was wondering what data would be available for the tags that are triggered via the server to server setup (eg. google analytics). Would the request headers be the same as they were send from the users browser or would that be a custom header? The reason for this question is that I would like to know whether or not it is possible to override the referrer field in the request to for instance Google Analytics servers. An example: Coming from a page with url mydomain.com/privatedata?myid=secret and landing on mydomain.com/publicpage I would typically see in the referrer the full url :mydomain.com/privatedata?myid=secret. Would it be possible to change this referrer field either to null/empty and use the parameter in the tag request to manually specify the referrer as being mydomain.com/privatedata-obfuscated? It basically comes down to me wanting to know if the request issued to Google Analytics will contain the same data/headers when issued from a server to server setup as when triggered directly from the browser itself?
2 REPLIES 2
Highlighted

Server to Server and data?

Tealium Employee
I *think* Google only uses the header to get IP address for GEO-location lookup info. The referrer is part of the param list. The "dr" param is used to send the referrer to Google Analytics. This is documented here: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#dr That said, this "dr" param is not currently supported in mapping for Google Universal Analytics in Tealium. This would be an enhancement request and I'm sure we can add it for you. Please contact your Account Manager to make sure the enhancement is logged and prioritized.
Highlighted

Server to Server and data?

Silver Contributor
Silver Contributor
Thanks for the reply but I perhaps was not clear enough in explaining my question. We want to be 100% sure what we send to Google Analaytics. Therefore I would like to know how the request is being send to Google in case of a server to server setup. As the request is made from a tealium server I guess that the request headers will contain the details from that server (eg. the ip/useragent/referrer fields are different). I just want to verify if this reasoning is correct. If there would be a more detailed document or explanation available for the nitty gritty details regarding server to server I would be very happy to receive! thanks