PageSourceSearch

https://winmobile.co.il/wp-content/cache/min/1/wp-content/plugins/…/assets/tracker.js?ver=1790357930

js winmobile.co.il collected 2026-10-08 01:19:40 UTC 3,307 bytes, 21 lines download raw bytes

1(function(){'use strict';var CFG=window.WM_ADS||{};if(!CFG.publicKey||!CFG.endpoint){return}
2var ATTR_KEY='wm_attr';var ATTR_WINDOW_MS=30*24*60*60*1000;function persistAttr(attr){try{localStorage.setItem(ATTR_KEY,JSON.stringify(attr))}catch(e){}
3try{var maxAge=ATTR_WINDOW_MS/1000;var secure=location.protocol==='https:'?'; Secure':'';document.cookie=ATTR_KEY+'='+encodeURIComponent(JSON.stringify(attr))+'; Max-Age='+maxAge+'; Path=/; SameSite=Lax'+secure}catch(e){}}
4function resolveAttribution(){var params=new URLSearchParams(location.search);var gclid=params.get('gclid');var fbclid=params.get('fbclid');var incoming={type:'direct'};if(gclid){incoming={type:'google',gclid:gclid,ts:Date.now()}}else if(fbclid){incoming={type:'meta',fbclid:fbclid,ts:Date.now()}}else if(document.referrer&&document.referrer.indexOf(location.host)===-1){incoming={type:'organic',ref:document.referrer,ts:Date.now()}}
5var stored=null;try{stored=JSON.parse(localStorage.getItem(ATTR_KEY)||'null')}catch(e){stored=null}
6if(incoming.type!=='direct'){persistAttr(incoming);return incoming}
7if(stored&&stored.ts&&(Date.now()-stored.ts)<ATTR_WINDOW_MS){persistAttr(stored);return stored}
8return incoming}
9var attribution=resolveAttribution();function genEventId(){try{if(window.crypto&&crypto.randomUUID)return crypto.randomUUID()}catch(e){}
10return Date.now().toString(36)+'-'+Math.random().toString(36).slice(2,11)}
11function send(type,extra){var data={key:CFG.publicKey,type:type,attribution:attribution,url:location.href,event_id:genEventId()};if(extra){for(var k in extra){if(Object.prototype.hasOwnProperty.call(extra,k)){data[k]=extra[k]}}}
12var body=JSON.stringify(data);try{if(navigator.sendBeacon){var blob=new Blob([body],{type:'application/json'});navigator.sendBeacon(CFG.endpoint,blob);return}}catch(e){}
13try{fetch(CFG.endpoint,{method:'POST',headers:{'Content-Type':'application/json'},body:body,keepalive:!0,mode:'cors'})}catch(e){}}
14send('page_view');if(CFG.isProduct||document.body.classList.contains('single-product')){send('view_item')}
15document.addEventListener('click',function(e){var t=e.target;if(t&&t.nodeType!==1&&t.parentElement){t=t.parentElement}
16var a=(t&&t.closest)?t.closest('a'):null;if(!a){return}
17var href=String(a.getAttribute('href')||'').toLowerCase();if(!href){return}
18if(href.indexOf('tel:')===0){send('convert_phone')}else if(href.indexOf('wa.me')!==-1||href.indexOf('api.whatsapp.com')!==-1||href.indexOf('web.whatsapp.com')!==-1||href.indexOf('whatsapp://')===0){send('convert_whatsapp')}},!0);function isNonLeadForm(f){if(!f||!f.matches)return!1;if(f.matches('.woocommerce-checkout, .woocommerce-cart-form, [role="search"], .search-form')){return!0}
19var action=String(f.getAttribute('action')||'').toLowerCase();return action.indexOf('?s=')!==-1||action.indexOf('/search')!==-1}
20var lastFormSent=0;function sendFormOnce(f){if(isNonLeadForm(f))return;var now=Date.now();if(now-lastFormSent<1500)return;lastFormSent=now;send('convert_form')}
21document.addEventListener('submit',function(e){sendFormOnce(e.target)},!0);document.addEventListener('click',function(e){var el=e.target;if(!el||!el.closest)return;var btn=el.closest('button[type="submit"], input[type="submit"], .wpforms-submit, .elementor-button');if(!btn)return;var form=btn.closest('form');if(form){sendFormOnce(form)}},!0)})()

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.