1var GOOGLE_ADWORDS = function(){ 2 var GAmarketing = function(idx, name, price, domain, type, google_adwords_id){ 3 if(type == 'retail'){ 4 gtag('event', 'page_view', { 5 'send_to' : 'AW-' + google_adwords_id, 6 'ecomm_prodid' : idx, 7 'ecomm_pagetype' : 'product', 8 'title' : name, 9 'price' : price, 10 'link' : domain 11 }) 12 }else if(type == 'hotel'){ 13 gtag('event', 'page_view', { 14 'send_to' : 'AW-' + google_adwords_id, 15 'Destination_ID' : idx, 16 'Title' : name, 17 'Price' : price, 18 'Final_URL' : domain 19 }) 20 } 21 }; 22 return { 23 "GAmarketing" : function(idx, name, price, domain, type, google_adwords_id){ 24 GAmarketing(idx, name, price, domain, type, google_adwords_id); 25 } 26 } 27}();
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.