Google Ads manager - Web tracking with Datalayer

0 votes
243 views
added Oct 31, 2018 in Google tools by LC Marshal Captain (25,790 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
    }
    )
}
 
);

 

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