Data Mapping for generic tag

Bronze Contributor
Bronze Contributor

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.

These variables need to be used in javascript extension that is scoped to that tag.Please help me with the solution. or a example

4 REPLIES 4

Data Mapping for generic tag

Tealium Expert
Tealium Expert

Hi @Sandeepch - take a read through these two posts:

 

https://community.tealiumiq.com/t5/Tags/Tealium-Generic-Tag-Setup-Guide-for-Tealium-iQ/ta-p/12034

and

https://community.tealiumiq.com/t5/iQ-Tag-Management/Data-Mappings/ta-p/10645

 

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.

Tealium Expert

Data Mapping for generic tag

Gold Contributor
Gold Contributor

Hi,

This is a related question hence adding it here itself.  Suppose I wanted a result like this using the Tealium Generic tag.

 

https://www.emjcd.com/u?CID=1519240&OID=11585906905&TYPE=342268&CURRENCY=USD&ITEM1=5124966600&AMT1=7...

 

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?

Thank you,
Sujani

Data Mapping for generic tag

Tealium Expert
Tealium Expert

Hey @sujani_koya

 

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.

 

Good Luck

Data Mapping for generic tag

Gold Contributor
Gold Contributor

Thank you, @JerTippets.

Public