Map the click on the button

Bronze Contributor
Bronze Contributor

Hello,

I need to create a conversion tag, to detect the click on the "subscribe newsletter" button.

Screenshot_1.png

jQuery Selector: button.newsletter-subscription__form__button.theme-bg-color-primary

Primary Selector: #newsletter-subscription-form
 
Screenshot_2.png
 
I need to map the click by inserting a trigger. But I don't know how to do it, can you help me please?
1 REPLY 1

Map the click on the button

Gold Contributor
Gold Contributor

HI @GeorgeLuan,

 Please dont try to add the script using extension.  Try using Tealium generic tag for custom implementation

https://community.tealiumiq.com/t5/iQ-Tag-Management/Generic-Tag-Setup-Guide/ta-p/12034 

if the required tag is not available in the tag market place.

The tag which you are looking for is available in the tag marketplace named : MediaMath (Adroit Digital).

Then in the extension which you have added, modify the tracking event to 'link' and map to the created UDO variable 'event_name'. Just for an example I have given the condition as 'subscribenewsletter', you can change according to your requirement

Mapping.PNG

In the load rule you can define the condition that tag should fire when the event named subscribenewsletter occurs

Mediamath.PNG

Public