GIÀU TO CLUB

/// load jQuery in no-conflict mode jQuery.noConflict(); /// run the following script using our jQuery library (function ($) { /// dom ready $(function () { /// add gtm.click handlers $('body').on('click', function (e) { dataLayer.push({ "gtm.element": e.target, "gtm.elementClasses": $(e.target).attr('class'), "gtm.elementId": $(e.target).attr('id'), "gtm.elementTarget": e.target, "gtm.elementUrl": $(e.target).attr('href'), "event": "gtm.click" }); }); /// add gtm.linkClick handlers $(document).on('click', 'a', function (e) { dataLayer.push({ "gtm.element": e.currentTarget, "gtm.elementClasses": $(e.currentTarget).attr('class'), "gtm.elementId": $(e.currentTarget).attr('id'), "gtm.elementTarget": e.target, "gtm.elementUrl": $(e.currentTarget).attr('href'), "event": "gtm.click" }); }); }); })(jQuery);