- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
How to apply an event listener in Telium?
If I want to detect a click event how can I do? Is there a specific extension?
Solved! Go to Solution.
Hi
There are possibly 2 extensions you can use.
View this link https://community.tealiumiq.com/t5/iQ-Tag-Management/jQuery-onHandler-Extension-jQuery-1-7-and-up/ta...
Are you tracking anything speicific, or just want to pass through more enriched click data?
Thanks for your reply. I cannot use a click event listener using a Javascript click listener. How can I
Thanks for your replay and sorry for my broken previouse message. What I am trying to do it is to launch some event listener in order to track spcific event (click or element show) on my desktop website. I cannot user Jquery, so I think I have to use a javascript solution. Do I have to use a proper naming conventino? How to push my event in utag_data? How to use it for mapping an event?
Hi
Yeah if you can't use jquery, you will need to write pure javascript.
Without seeing what you are working on, it will be very difficult to advise.
The two main ways to send data will be to use uta.view or utag.link depending on how you want to measure the data.
If you are the developer of the website, then i will recommend pushing the data using the utag_data method, so the datalayer is pre-populated for when Tealium loads.
I recommend you read through the help files and try a few of the techniques listed.
I would recommed this https://docs.tealium.com/platforms/javascript/install/
Hi @jacopoOrlando ,
I suggest reading this article: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
It explains the process and provides examples of how to implement event listeners using vanilla javascript (aka no libraries).
You can then add this to your profile using a Javascript Code extension.
Hope that helps
Copyright All Rights Reserved © 2008-2023