1/* global gtag, ga, _gaq */ 2(function( $ ) { 3 $( 'a[data-click-tracking]' ).click(function() { 4 var trackingLabel = $( this ).attr( 'data-click-tracking' ); 5 if ( typeof gtag !== 'undefined' ) { 6 gtag('event', 'click', { 7 'event_category': 'WP Associate POST', 8 'event_label': trackingLabel 9 }); 10 } else if ( typeof ga !== 'undefined' ) { 11 ga( 'send', 'event', 'WP Associate POST', 'click', trackingLabel ); 12 } else if ( typeof _gaq !== 'undefined' ) { 13 _gaq.push([ '_trackEvent', 'WP Associate POST', 'click', trackingLabel ]); 14 } 15 }); 16})( jQuery );
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.