Highlighted

Is there a way to set variables in Tealium iQ at the environment level? Currently I am using Google Analytics and I need to modify the tracking ID before I promote it to each environment.

Rookie Contributor
 
2 REPLIES 2
Highlighted

Is there a way to set variables in Tealium iQ at the environment level? Currently I am using Google Analytics and I need to modify the tracking ID before I promote it to each environment.

Employee Emeritus

Hi Robert, Yes, once you "Save/Publish" in TiQ, select "Save As". Under "Publish To", you may select the environment you prefer to publish in. For more information about this, you may read this for reference: https://community.tealiumiq.com/t5/Getting-Started/Save-Publish-a-Version-in-Tealium-iQ/ta-p/10929 Does this help answer your question? Let us know if you need anything else. Thank you.

Highlighted

Is there a way to set variables in Tealium iQ at the environment level? Currently I am using Google Analytics and I need to modify the tracking ID before I promote it to each environment.

Tealium Employee
Hi Robert 1. Add ut.env as a data source. You can do it individually, or you can add it from the Tealium Built-In data bundle. 2. Add a lookup extension to take this value and output your different tracking ids depending on the input, into a new data source. Let's call it gua_track_id, to make it clear that this data source is specific to GUA 3. Remove the setting for GUA's tracking id and map the output data source to the account. Actually, you probably don't need to remove the existing GUA tracking id, because it will be overwritten by the extension. But you can have a default in the lookup extension, so it's up to you. Screenshots below If you need to refer to the environment data source in JS code, you can use the following syntax utag.data['ut.env'] Mark