1/** 2 * GA Affiliate Link Event Tracker 3 * 4 * @param {Object} namespace The namespace within which to format classnames. 5 * @return {Object} 6 */ 7/* global dataLayer */ 8jQuery('document').ready(($) => { 9 10 $( 11 'a[href^="https://nordstrom.sjv.io"],' + 12 'a[href^="https://goto.walmart.com/"],' + 13 'a[href^="https://go.linkby.com"],' + 14 'a[href^="https://www.kqzyfj.com"],' + 15 'a[href^="https://click.linksynergy"],' + 16 ' a[href^="https://shop-links.co"],' + 17 ' a[href^="https://amzn.to"],' + 18 ' a[href^="https://shareasale.com/"],' + 19 ' a[href^="http://www.anrdoezrs.net"],' + 20 ' a[href^="https://www.anrdoezrs.net"],' + 21 ' a[href^="http://www.jdoqocy.com"],' + 22 ' a[href^="https://www.jdoqocy.com"],' + 23 ' a[href^="http://www.tkqlhce.com"],' + 24 ' a[href^="https://www.tkqlhce.com"],' + 25 ' a[href^="https://lvnta.com"],' + 26 ' a[href^="https://howl.me"],' + 27 ' a[href^="https://www.amazon.com"],' + 28 ' a[href^="https://goshopnow.click"],' + 29 ' a[href^="https://fave.co"],' + 30 ' a[href^="https://www.pjatr.com"],' + 31 ' a[href^="https://go.shopyourlikes.com"]' ).on('click', function () { 32 window.dataLayer = window.dataLayer || []; 33 dataLayer.push( { 34 event: 'affiliateLink', 35 eventLabel: $(this).attr('href') 36 }); 37 }); 38 39 $( 40 'a[href^="healthcare.com/"],' + 41 'a[href^="www.healthcare.com/"],' + 42 'a[href^="https://www.healthcare.com/"],' + 43 ' a[href^="http://www.healthcare.com/"]' ).on('click', function () { 44 window.dataLayer = window.dataLayer || []; 45 dataLayer.push( { 46 event: 'healthcareLinkClick', 47 eventLabel: $(this).attr('href') 48 }); 49 }); 50 51});
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.