- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
08-09-2017 09:30 AM - edited 08-09-2017 09:36 AM
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.
08-11-2017 01:39 PM - last edited on 08-14-2017 01:31 PM by kathleen_jo
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?
11-02-2017 01:42 PM - last edited on 11-02-2017 01:53 PM by kathleen_jo
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.
01-12-2018 06:25 AM - last edited on 01-12-2018 07:39 AM by kathleen_jo
Thank you, @JerTippets.
Copyright All Rights Reserved © 2008-2023