Use the Beacon API for click tracking

Bronze Contributor
Bronze Contributor

I'm trying to setup click tracking for a lot of URLs that direct away from the current domain.

Using out-of-the-box Tealium jquery handlers works some of the time, but not always. There is a race condition when the link is clicked and it will not be successfully tracked if the requested URL loads faster than the pixel can be fired.

The modern way to handle this is with the Beacon API, but I'm not finding any information in the docs or forums.

My question is if there's a Tealium-native way to use the Beacon API for ensuring that pixels fire in situations like this.

Thanks!

1 REPLY 1

Use the Beacon API for click tracking

Community Manager
Community Manager

Hi @ben_a ,

Beacon API is still an experimental solution and is not officially supported by Tealium. Plus, that API is used to facilitate the sending of data from the browser to a server, whereas the Tealium Universal Tag (utag.js) is designed as a wrapper to trigger all other tags on the page. How each vendor tag fires their tag is up to them.

Here are some past discussions about the issue of tracking exit links before the page unloads that might be helpful:

Remember to "Accept as Solution" when your question has been answered and to give kudos to helpful replies.
Public