Highlighted

Fire floodlight tag on link click but only on select pages?

Rookie Contributor
I am trying to setup a floodlight tag to fire when a link is clicked but only on a select page. Is this possible? My problem is the links I want to fire this floodlight tag have no unique variables to set them apart from any other link on the site. They are simple a href links hence why I cannot use the class to fire the floodlight tag on click. Luckily the links I need fired are the only ones on the page. Having trouble getting this to work so far so any guidance would be appreciated.
3 REPLIES 3
Highlighted

Fire floodlight tag on link click but only on select pages?

Employee Emeritus

Dustin By default the floodlight tag will not fire on link calls. You will want to review this article to know how to enable the link tracking call for that tag. https://community.tealiumiq.com/t5/Tealium-iQ/How-to-check-if-a-tag-will-fire-on-view-or-link-calls/... As for the href links you want to track. My guess is that you will want to see if there is something unique in parent element like a div, ul, li ..... As an example if the html looks like:

You could use this selector for the Tealium jQuery onHandler div.myclass a This translates to find any div with a class (that is the dot) called myclass, then once you find that look within the div for an a element. Hope that helps. If not, feel free to reach out to your Account Manager and they can help you figure out a solution.

Highlighted

Fire floodlight tag on link click but only on select pages?

Rookie Contributor
Thanks Brian. Was able to use the div class above the actual link to get the tag to fire correctly.
Highlighted

Fire floodlight tag on link click but only on select pages?

Employee Emeritus
Dustin Thanks for letting us know you got it working. Happy Tracking! Brian