Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Silver Contributor
Silver Contributor
We need this in order to double check all the conversion tag fired on our thankyou page. Thank You, Claudio
9 REPLIES 9
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Employee Emeritus
Claudio, Most tags will allow you to map a variable to a custom parameter for that vendor. For example, the DoubleClick Floodlight tag has custom "u#" parameters that you'd be able to map to. (i.e. Map order_id to u1) If the tag allows you to send a custom parameter then all you've got to do is map the desired variable to the custom parameter in the tag. However, you'd need to reach out to your vendors to see what syntax they need this extra parameter sent.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Silver Contributor
Silver Contributor
Hello Jared, thank you for the answer, but i think my question was not clear enough. What i need if the ability to know for each page i visit which tags tealium has fired. For example i would like to have a datalayer variable that on pageX tell me that i have sent through TealiumIQ Adobe Analytics and Google Analytics, and on pageY Google Analytics and Criteo. We need this in order to send this data to an internal log system in order to double check which tag have been fired (for dedulication purposes). Do you think it possible? Thank You, Claudio.

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Silver Contributor
Silver Contributor
Hello Jared, what it could be the best option for me could be an array of value like in the overview tab of the web companion. Do you think it possible? Thank You, Claudio.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Silver Contributor
Silver Contributor
Hello Jared, do you have any idea about a solution like this? Thank You, Claudio.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Employee Emeritus
Hey Claudio, Apologies, I haven't seen these updates come through. Let me look at this today. My first thought is that we'd be able to output the tag IDs that loaded on the page and set a comma separated string into an variable that can then be sent to a tag vendor.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Employee Emeritus
Hey Claudio, Like mentioned, you can use a Javascript Code Extension to get the UID numbers for the tags that loaded on the page. This isn't necessarily the tags that fired, but more so the tag libraries that were loaded on the page. There isn't a way for Tealium to know what tags actually fired because there isn't a response sent to Tealium after the vendor's code has actually ran. You can use something like: var tl = []; for(x in utag.loader.cfg){ tl.push(x); } b.tags_loaded = tl.toString(); In a JavaScript Code Extension scoped to "All Tags." This will output a value like "3,10,14" showing the tag UID numbers for the three tags that loaded on that page. You can then add a data source title "tags_loaded" set to Data Object Type and use that in the mappings for the tags. I'm not sure what format you had in mind, but feel free to reply with questions.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Silver Contributor
Silver Contributor
HEllo Jared, that was almost what i needed. Do you think there is a way to get the Tag Title like in the web compaion? Having the ID of the tag loaded for me is a problem because i use a global library and the tag ID if these tags change every time i publish a new version. Thank You, Claudio.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Employee Emeritus
Hey Claudio, So here is a workaround to get what you need. It requires a little bit of work because the tag title from the UI is not available on the page client side, but this method will get what you need. You will need to add a Data Source called "tag_title" or whatever else will help you remember what it is used for. In each tag you will need to map tag_title to a text value of whatever you want the title to be. So in the mapping section of the tag: Select tag_title from the drop down of available data sources Click "Select Destination" Click "Apply" (do not select anything in the toolbox In the empty text field next to the new mapped data source type in the title of the tag Then Add a JavaScript Code Extension with this: b.tags_loaded = []; for(x in utag.sender){ for(z in utag.sender[x].map){ if(z=="tag_title"){ b.tags_loaded.push(utag.sender[x].map[z]); } } } b.tags_loaded.join(',') Scope this extension to all tags. This will output a comma separated string of tag titles that loaded on that page. The output variable is a variable called "tags_loaded" and this can be mapped to the vendors you want this list of tags sent to.
Highlighted

Is there a way to put in a datalayer variable all the tag fired by TealiumIQ?

Silver Contributor
Silver Contributor
Thank You very much for your help Jared. On Monday i will try to implement your solution adn tell you if all goes as expected. Good Weekend, Claudio.