calin-beard
11/13/2017 - 4:28 PM

GA event triggered on destination url. Works for images!

GA event triggered on destination url. Works for images!

<script>
window.onload = function()
{
jQuery('a[href="REPLACEWITHURL"]').attr("onclick", "ga('send', 'event', 'CATEGORY', 'ACTION', 'LABEL')");
};
</script>