I am writing a generic tag in tealium iq, but i am not sure how do I map the data Layer variables to that tag.
Solved! Go to Solution.
Hi @Sandeepch - take a read through these two posts:
Also, you'll create your Data Layer variables, then in your extension you will set the values as desired and set the Scope to be the same as the generic tealium tag (be sure to give it a good alias/name meaningful to you in the future). Setting the Scope means that the extension will process together with your generic tag and (hopefully) have the correct values set. Be sure to test in your "Dev/QA" environment and check your results in the browser inspector and Tealium Web Companion.
This is a related question hence adding it here itself. Suppose I wanted a result like this using the Tealium Generic tag.
How would the data mappings work? The quantities, prices and item numbers are there in separate arrays of their own. The code for this should be written in a JS Code extension or is there any other way?
There are ways to handle this, but i'll be honest, writing the JS in an Custom Container tag would be the fastest and easiest way to combine data from multiple arrays into a single thread.
If you REALLY wanted to use the generic tag, you would have to write an extension to break up your array into utag data elements, then map those to the Generic Tag.
The cool thing about tealium is that there is always more than one way to get the job done. I would personally go for the Custom Container tag.