custom event listener

Bronze Contributor
Bronze Contributor

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? 

6 REPLIES 6

custom event listener

Tealium Expert
Tealium Expert

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?

 

 

Damian Savvides

custom event listener

Bronze Contributor
Bronze Contributor

Thanks for your reply. I cannot use a click event listener using a Javascript click listener. How can I 

custom event listener

Tealium Expert
Tealium Expert

Hi

You might need to be a litlle bit more specific.
Are you talking about clicks on a website or App?
And are you talking about IQ or Eventstream?

 

thanks

Damian Savvides

custom event listener

Bronze Contributor
Bronze Contributor

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? 

custom event listener

Tealium Expert
Tealium Expert

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/

 

Damian Savvides

custom event listener

Employee Emeritus

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

Public