I created a link tracking extension (event name = link_click). I created a tag to fire when the event_name = link_click. It is tag which is not present in the martket place. So I added a Tealium custom container tag and editted the template in the /* Start Tag Library Code */ section with the tags our vendor has provided. One of the lines of code requires the url of the link clicked. From what I understand, this is available as link_url which is an event output variable. I am unable to figure out how to read this and assign it to the variable in the template. Can you please help with this? Thanks
08-24-2017 04:57 AM - last edited on 08-24-2017 08:20 AM by kathleen_jo
Hi @harshini. Ok from what I understand you want to implement a custom tag which is not available in the marketplace and in order for that tag to fire it needs to have the URL of the link which was clicked. Thereby implying that the tag should only fire on-click and not on page load.
First of all, the Tealium Generic tag and pixel container are there only to fire a given pixel or script on the site. You cannot edit the template of this tag with vendor given JS as it would only break the system and not work. Therefore I suggest that you have a look at the vendor documentation and test out the script on your local machine. Thereafter setup the generic tag to fire the particular pixel which you need to pass.
I would suggest reviewing these articles.
So as a TLDR:
/* Start Tag Library Code */ /* End Tag Library Code */
This is for code that runs as soon as the tag has loaded
You should add your code you want to use to this section:
/* Start Tag Sending Code */ // Insert your tag sending code here. /* End Tag Sending Code */
Then at this point you can access mappings that have occured in