Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

Google Ads manager - Web tracking with Datalayer

0 votes
8 views
added Oct 31 in Google tools by LC Marshal Lieutenant (14,630 points)
$("#cb_tab_Flight").on("click", function() {
    window.gtmDataLayer.push( {
        event: "trackEventNoEcommerce", "eventDetails.category": "hpsearch widget", "eventDetails.action": "click", "eventDetails.label": "flight", "eventDetails.nonInteraction": !0
    }
    )
}
 
);
$("#cb_tab_Hotel").on("click", function() {
    window.gtmDataLayer.push( {
        event: "trackEventNoEcommerce", "eventDetails.category": "hpsearch widget", "eventDetails.action": "click", "eventDetails.label": "hotel", "eventDetails.nonInteraction": !0
    }
    )
}
 
);
$("#cb_tab_Package").on("click", function() {
    window.gtmDataLayer.push( {
        event: "trackEventNoEcommerce", "eventDetails.category": "hpsearch widget", "eventDetails.action": "click", "eventDetails.label": "flight+hotel", "eventDetails.nonInteraction": !0
    }
    )
}
 
);
$("#cb_tab_Car").on("click", function() {
    window.gtmDataLayer.push( {
        event: "trackEventNoEcommerce", "eventDetails.category": "hpsearch widget", "eventDetails.action": "click", "eventDetails.label": "car", "eventDetails.nonInteraction": !0
    }
    )
}
 
);
$("#cb_tab_Activities").on("click", function() {
    window.gtmDataLayer.push( {
        event: "trackEventNoEcommerce", "eventDetails.category": "hpsearch widget", "eventDetails.action": "click", "eventDetails.label": "activities", "eventDetails.nonInteraction": !0
    }
    )
}
 
);

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...