I'm trying to set up an extension that fires an event when a button is clicked.
I used the WebCompanion Tool and created a jQuery clickHandler Extension after using the On-Page Selector on the button.
What's the best way to check now if the Event is firing? In my EventStream I don't get any events when I click the button. So I'm not sure if my Extension is working at all.
Furthermore I'm not sure about the "To:" mapping of the variable. I want to use the value of a text input form:
I'm thankful for any kind of help.
Solved! Go to Solution.
The easiest way to debug the onHandler extension is to start off with a "Custom" tracking event, which allows you to then enter your own code rather than using utag.link()/.view().
Now, in terms of the JS code for e-mail address, I suspect it ought to be:
So when you come to enter custom tracking code, enter something like:
console.log( "Event debug", jQuery("#email_element_id").val() );
In which case, if the handler is correctly being triggered on the mousedown event, you should see a console log of the value that would be passed into the Tealium event. Once you've played around and gotten that to your liking, switch back to firing a link() event and pass the e-mail address into your target UDO parameter.
@thedonesteban something else to consider is turning on utag debug. It'll show you all
view calls along with the data object sent. Instructions on how to turn it on are available here: Console Debug Output.
If you're interested, I use a bookmarklet to toggle it all the time.