Building your own custom tag with mappings

Gold Contributor
Gold Contributor
Dear, I've created a custom tag in Tealium and added javascript code to the custom container executing the necessary code. The problem is that the maintance of the custom container becomes to high. We have about 20 different profiles where this tags needs to be configured, together with about (15 to 20 data-layer mappings). My idea was building my own custom container in github loading it as a minified/concatted script to our cdn's and load this on tealium. Can we automate the mappings as well ? Any tips, documentation Greetz T
9 REPLIES 9

Building your own custom tag with mappings

Tealium Employee

Hi Thomas,

 

It sounds like you would be ideally suited to use the Library Inheritance feature of Tealium. This allows you to have a Library that contains the custom tag and then you can configure which profiles should inherit this library. This would allow you to maintain the tag in one "location" and then when any changes have been made publish to each profile when you are ready. There is the a link to some documentation available on the community:

 

https://community.tealiumiq.com/t5/Tealium-iQ/Profile-Inheritance/ta-p/13622

 

If you require any further assistance please contact your Account Manager who will be able to assist you.

 

Kind Regards

 

Simon

Building your own custom tag with mappings

Employee Emeritus
That's right T - I used the library inheritance feature all of the time and have all of the mappings done already. When you choose to use the library tag in a standard profile - as long as all of the data sources are available in the profile you'll be able to set these values using extensions.

Building your own custom tag with mappings

Gold Contributor
Gold Contributor
Ok thanks for the help. I' ll give this a test run. This will simplify a lot of my repetitive work. One small question: The library will contain a custom tag that needs some configuration per profile. How do I tackle that? Put the config in the data-layer and set it with an extension in the profile?

Building your own custom tag with mappings

Employee Emeritus
That's exactly right Thomas - handle all the unique parts to the tag by setting your data sources via extensions in the profile.

Building your own custom tag with mappings

Gold Contributor
Gold Contributor
Any idea the guys of Tealium can convert a profile to a library. To prevent a need to do it another time :)

Building your own custom tag with mappings

Employee Emeritus
Hey Thomas, Yes - you can just copy an existing profile as a library. Cheers, Roshan

Building your own custom tag with mappings

Gold Contributor
Gold Contributor
Thx, will use the normal channel

Building your own custom tag with mappings

Gold Contributor
Gold Contributor

Dear,

 

Started doing the migration. But still have some question. I would like to split up 1 profile in different libraries and then migrating the other profiles. The plan is:

 

 

Step1: Make a base library containing the data-layer and default extensions.

Step2: Make another library containing specific tags we want to reuse.

Step 3: apply this on the profile and remove the other tags and datalayer stuff.

 

Now some questions,can refer to datalayer vars in the base library from within the tag library and profile?

 

Kind regards

 

T

Building your own custom tag with mappings

Tealium Employee
Hi Thomas, You would need to have the data layer available in the library where you are hosting your tags as well. This is because if you wish to have mappings on the tags then you need to have the data sources available in the same library as the tag in question as there is no linking between different libraries. I would suggest that you either have the tags in within the same library as the extensions or you copy the data sources into the tag library as well.
Public