PageSourceSearch

https://barkyn.com/cdn/shop/t/4/assets/bk-utm-tracker.js?v=143238125765620877951783526439

js barkyn.com collected 2026-09-28 07:24:47 UTC 1,964 bytes, 2 lines download raw bytes

1(function(){var FIRST_KEY="bk_utm_first",LAST_KEY="bk_utm_last",COUPON_KEY="bk_coupon";function read(key){try{return JSON.parse(localStorage.getItem(key))}catch(e){return null}}function write(key,val){try{localStorage.setItem(key,JSON.stringify(val))}catch(e){}}function deriveMatchType(source,medium){var s=(source||"").toLowerCase(),m=(medium||"").toLowerCase();return m==="cpc"||m==="ppc"||m.indexOf("paid")!==-1?"paid_search":m==="organic"||!m&&(s==="google"||s==="bing"||s==="yahoo")?"organic":m==="social"||["facebook","instagram","tiktok","pinterest","twitter","linkedin","youtube","x"].indexOf(s)!==-1?"social":m==="email"?"email":s||m?"referral":"direct"}function getAttribution(){var first=read(FIRST_KEY)||{},last=read(LAST_KEY)||{},coupon=read(COUPON_KEY)||"";return{acquisition_first_source:first.source||"",acquisition_first_medium:first.medium||"",acquisition_first_campaign:first.campaign||"",acquisition_first_content:first.content||"",acquisition_first_term:first.term||"",acquisition_last_source:last.source||"",acquisition_last_medium:last.medium||"",acquisition_last_campaign:last.campaign||"",acquisition_last_content:last.content||"",acquisition_last_term:last.term||"",first_touch_match_type:first.match_type||"direct",coupon_applied:coupon}}(function(){var params=new URLSearchParams(window.location.search),source=params.get("utm_source")||"",medium=params.get("utm_medium")||"",campaign=params.get("utm_campaign")||"",content=params.get("utm_content")||"",term=params.get("utm_term")||"",coupon=params.get("discount")||"";if(coupon&&write(COUPON_KEY,coupon),!(!source&&!medium&&!campaign)){var touch={source:source,medium:medium,campaign:campaign,content:content,term:term,match_type:deriveMatchType(source,medium)};read(FIRST_KEY)||write(FIRST_KEY,touch),write(LAST_KEY,touch)}})(),window.BkUtmTracker={getAttribution:getAttribution}})();
2//# sourceMappingURL=/cdn/shop/t/4/assets/bk-utm-tracker.js.map?v=143238125765620877951783526439

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.