1var tracking = { 2 3 doTrack: function (eventName, channel, sessionId, extraParams) { 4 var params = { 5 event: eventName, 6 channel: channel, 7 sid: sessionId 8 }; 9 for (var param in extraParams) { 10 if (extraParams[param] != null) 11 params[param] = extraParams[param]; 12 } 13 14 15 $.ajax({ 16 url: debUrl + 'Produits/TrackFF', 17 data: params, 18 async: false, 19 contentType: "application/x-www-form-urlencoded; charset=UTF-8", 20 headers :{'sid': sessionId } 21 }); 22 23 24 /* new Ajax.Request(debUrl + 'Produits/TrackFF', { 25 method: 'get', 26 parameters: params, 27 asynchronous: false, 28 contentType : "application/x-www-form-urlencoded", 29 encoding : "UTF-8" , 30 requestHeaders : {'sid': sessionId } 31 });*/ 32 }, 33 34 click: function (channel, sessionId, id, masterId, query, pos, origPos, 35 page, origPageSize, campaign, instoreAds) { 36 this.doTrack('click', channel, sessionId, { 37 id: id, 38 masterId: masterId, 39 query: query, 40 pos: pos, 41 origPos: origPos, 42 page: page, 43 origPageSize: origPageSize, 44 campaign: campaign, 45 instoreAds: instoreAds 46 }); 47 }, 48 49 recommendationClick: function (channel, sessionId, id, masterId, mainId) { 50 this.doTrack('recommendationClick', channel, sessionId, { 51 id: id, 52 masterId: masterId, 53 mainId: mainId 54 }); 55 }, 56 57 cart: function (channel, sessionId, id, masterId, count, price, query, campaign, instoreAds) { 58 this.doTrack('cart', channel, sessionId, { 59 id: id, 60 masterId: masterId, 61 count: count, 62 price: price, 63 query: query, 64 campaign: campaign, 65 instoreAds: instoreAds 66 }); 67 }, 68 69 70 directCart: function (channel, sessionId, id, masterId, query, pos, 71 origPos, page, origPageSize, count, price, campaign, instoreAds) { 72 this.click(channel, sessionId, id, masterId, query, pos, origPos, page, 73 origPageSize, campaign, instoreAds); 74 this.cart(channel, sessionId, id, masterId, count, price, query, campaign, instoreAds); 75 }, 76 77 checkout: function (channel, sessionId, id, masterId, count, price, query, 78 userId, campaign, instoreAds) { 79 this.doTrack('checkout', channel, sessionId, { 80 id: id, 81 masterId: masterId, 82 count: count, 83 price: price, 84 query: query, 85 userId: userId, 86 campaign: campaign, 87 instoreAds: instoreAds 88 }); 89 }, 90 91 login: function (channel, sessionId, userId) { 92 this.doTrack('login', channel, sessionId, { 93 userId: userId 94 }); 95 } 96}
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.