How do I set the data collection servers for Adobe Analytics dynamically?

Gold Contributor
Gold Contributor
We have set up subdomains for adobe data collection servers for two domains: dc.domain.de (sdc.domain.de as secure server) and dc.domain.com (sdc.domain.com as secure server) For all traffic on domain.de we need to set the server to dc.domain.de and the secure server to sdc.domain.de For all traffic on domain.com we need to set the server to dc.domain.com and the secure server to sdc.domain.com a) In the variable mapping there is only "server" available. So how can I set "secure server" at all? b) What is best practice to achieve this? sebastian
9 REPLIES 9

How do I set the data collection servers for Adobe Analytics dynamically?

Employee Emeritus
Hey Sabastian, Currently trackingServer and trackingServerSecure are not built into the mapping toolbox as you point out. However, they can still be mapped. The "server" mapping is for the server variable and not the tracking server configs. You can map a variable to "trackingServer" and "trackingServerSecure" to achieve what you're looking for. These aren't available in the Mapping Toolbox but you can simply type them into the text field once you add the mapping. Select the variable you want to map from the drop down Hit "Select Destination" Click "Apply" (No need to select anything in the toolbox) In the empty text field next to the new mapping type in one of the above, either "trackingSever" or "trackingServerSecure" That's it! Cheers

How do I set the data collection servers for Adobe Analytics dynamically?

Gold Contributor
Gold Contributor
Hi Jared, thanks, that really helps - I like such general approaches :-) Do I assume right, that I can map the hierarchy variables this way as well? And one more: Is there a documentation of the "internal" Variables of Tealium IQ somewhere - I was not able to find one. sebastian

How do I set the data collection servers for Adobe Analytics dynamically?

Employee Emeritus
They hierarchy variables are in the "Standard" tab within the toolbox, but yes, you can map them the same way. I'm not sure what you're looking for when you say "internal." Can you give a little more detail? Thanks

How do I set the data collection servers for Adobe Analytics dynamically?

Gold Contributor
Gold Contributor
In the Appmeasurement version the hierarchy mapping is not in the toolbox. With internal variables I referred to variables like domain(dom),.. ...but hopefully there is also one variable with tells me which environment is currently active (dev, qa, prod) I just want an overview of variables which tealium offers through the framework (beside the customers data layer).

How do I set the data collection servers for Adobe Analytics dynamically?

Employee Emeritus

You're correct. The AppMeasurement tag does not have those in the mapping toolbox. I will take note to get them added. Tealium does not currently have a list of internal data sources. The main internal data sources that will always be given are: domain (dom) pathname (dom) query string (dom) title (dom) url (dom) referrer (dom) However, Tealium will automatically pick up the cookie values and meta tags on the page as well. These are hard to list because they will change on every site. Tealium does set a utag_main cookie that contains things like a session id, visitor id, visit number etc. More about the newer cookies can be found in the "Data Layer Updates" section here: https://community.tealiumiq.com/t5/utag/utag-js-4-26-Release-Notes/ta-p/11907 As far as the current environment, that is not output by default. However, it is fairly simple to grab. You can follow the steps found in this post: https://community.tealiumiq.com/t5/Tealium-iQ/How-to-change-tag-settings-based-on-Tealium-environmen... I hope that will help you for now. I agree this would be a useful list to have, and I will also take note to get this on the community. If you are ever wondering what variables are available to you, then you can open the developer tools of any browser (Hit F12 to open the dev tools on PC or CMD+Option+I on Mac) and open the Console tab. Once in the console tab, type "utag.data" in the text field and hit enter. This will output a list of the variables that have been populated based on the information on the page.

How do I set the data collection servers for Adobe Analytics dynamically?

Gold Contributor
Gold Contributor
Thanks - the links to the other posts really help. I don't know why I did not find the second one myself, when using the search.

How do I set the data collection servers for Adobe Analytics dynamically?

Tealium Expert
Tealium Expert

Looks like the URL structure of the community has changed so the links Jared provided don't work anymore.  Any ideas?

 

Ex:

https://community.tealiumiq.com/t5/Developers/utag-js-4-26-Release-Notes/m-p/870

 

and

https://community.tealiumiq.com/t5/Tealium-iQ/How-to-change-tag-settings-based-on-Tealium-environmen...

 

 

Tealium Expert

How do I set the data collection servers for Adobe Analytics dynamically?

Employee Emeritus

Hello @mitchellt. Here is one of the articles:

 

I am working on the other one as we speak. Stay tuned...

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

How do I set the data collection servers for Adobe Analytics dynamically?

Employee Emeritus
Hello mitchellt

Apologies for the broken links. You can now access them at:

https://community.tealiumiq.com/t5/uTag/utag-js-4-26-Release-Notes/ta-p/11907

and

https://community.tealiumiq.com/t5/Tealium-iQ/How-to-change-tag-settings-based-on-Tealium-environmen...

Feel free to reach out if you are unable to find specific content. We are here to help.
Thanks.
Public