PageSourceSearch

https://textieldrukshop.nl/wp-content/plugins/pixel-manager-pro-fo…/pro/pixel-mixpanel.457419a9.chunk.min.js

js textieldrukshop.nl collected 2026-10-04 13:35:51 UTC 8,532 bytes, 3 lines download raw bytes

1/*! Copyright 2025 SweetCode. All rights reserved. */
2(self.webpackChunkPixel_Manager_for_WooCommerce=self.webpackChunkPixel_Manager_for_WooCommerce||[]).push([[906],{4566(){!function(e,t){const r=new class{adapt(e,t,r){const a=`adapt${this.toPascalCase(t)}`;return"function"==typeof this[a]?this[a](e,r):null}toPascalCase(e){return"string"!=typeof e?"":e.replace(/(^|_)(\w)/g,(e,t,r)=>r.toUpperCase())}toPrice(e){const t=Math.round(100*Number(e))/100;return Number.isFinite(t)?t:0}getProductProperties(e,r){if(!e)return null;const a={product_id:e.id?String(e.id):t,name:e.name,price:this.toPrice(e.price),quantity:Number(r??e.quantity)||1,currency:pmwDataLayer?.shop?.currency};return e.sku&&(a.sku=String(e.sku)),e.brand&&(a.brand=e.brand),e.category&&(a.category=e.category),e.variant&&(a.variant=e.variant),a}adaptPageView(e,t){return{event_name:"Page Viewed",properties:{page_type:pmwDataLayer?.page?.type,page_title:document.title}}}adaptViewItemList(e,t){const r=this.getProductProperties(e.product,1);return r?{event_name:"Product List Viewed",properties:{list_name:e.listName||e.list_name,products:[r]}}:null}adaptSelectItem(e,t){const r=this.getProductProperties(e.product,1);return r?(r.list_name=e.listName||e.list_name,{event_name:"Product Clicked",properties:r}):null}adaptViewItem(e,t){const r=this.getProductProperties(e.product,1);return r?{event_name:"Product Viewed",properties:r}:null}adaptAddToCart(e,t){const r=e.product,a=Number(r?.quantity)||1,n=this.getProductProperties(r,a);return n?(n.value=this.toPrice(n.price*a),{event_name:"Product Added to Cart",properties:n}):null}adaptViewCart(e,t){const r=this.getCartProperties();return r?{event_name:"Cart Viewed",properties:r}:null}adaptBeginCheckout(e,t){return{event_name:"Checkout Started",properties:this.getCartProperties()||{}}}adaptAddShippingInfo(e,t){return{event_name:"Shipping Info Added",properties:this.getCartProperties()||{}}}adaptAddPaymentInfo(e,t){return{event_name:"Payment Info Added",properties:this.getCartProperties()||{}}}adaptSearch(t,r){return{event_name:"Products Searched",properties:{search_term:e.getSearchTermFromUrl()}}}adaptPurchase(e,r){if(pmwDataLayer?.pixels?.mixpanel?.ingestion_api)return null;const a=pmwDataLayer?.order;if(!a)return null;const n=[];Object.values(a.items||{}).forEach(e=>{let t=pmwDataLayer.products?.[e.id];pmwDataLayer?.shop?.variations_output&&e.variation_id&&0!==e.variation_id&&(t=pmwDataLayer.products?.[e.variation_id]||t);const r=this.getProductProperties(t||e,Number(e.quantity)||1);r&&(r.price=this.toPrice(e.price),e.name&&(r.name=e.name),r.currency=a.currency,n.push(r))});const i=this.toPrice(a.value?.marketing);return{event_name:"Order Completed",properties:{$insert_id:a.id?"pmw_"+String(a.id):t,order_id:String(a.number||a.id),revenue:i,value:i,currency:a.currency,product_count:n.reduce((e,t)=>e+t.quantity,0),products:n}}}getCartProperties(){if(!pmwDataLayer?.cart||e.isEmptyObject(pmwDataLayer.cart))return null;const t=[];return Object.values(pmwDataLayer.cart).forEach(e=>{const r=this.getProductProperties(e,e.quantity);r&&t.push(r)}),t.length?{value:this.toPrice(e.getCartValue()),currency:pmwDataLayer?.shop?.currency,product_count:t.reduce((e,t)=>e+t.quantity,0),products:t}:null}};e.registerAdapter("mixpanel",r,{mode:"browser_only",supportsS2S:!1,supportsEventDeduplication:!1,isActive:()=>!!pmwDataLayer?.pixels?.mixpanel?.project_token})}(window.pmw=window.pmw||{})},2104(){!function(e,t){const r=t=>{if(pmwDataLayer?.pixels?.mixpanel?.loaded&&e.shouldFireBrowserPixel(t,"mixpanel"))try{const r=t.pixels?.mixpanel;if(!r)return;e.mixpanelTrackEvent(r)}catch(e){console.error(e)}};e.bus.on("pmw:load-pixels",function(){pmwDataLayer?.pixels?.mixpanel?.project_token&&!pmwDataLayer?.pixels?.mixpanel?.loaded&&e.consent.canPixelBeFired("statistics","Mixpanel")&&e.loadMixpanelPixel()}),e.bus.on("pmw:pixel:page-view",e=>{r(e)});let a=[],n=t,i=null;e.bus.on("pmw:pixel:view-item-list",r=>{if(pmwDataLayer?.pixels?.mixpanel?.loaded&&e.shouldFireBrowserPixel(r,"mixpanel"))try{const o=r.pixels?.mixpanel;if(!o?.properties?.products?.length)return;a=a.concat(o.properties.products),n=o.properties.list_name||n,i&&clearTimeout(i),i=setTimeout(()=>{const r=a,o=n;a=[],n=t,i=null,r.length&&e.mixpanelTrackEvent({event_name:"Product List Viewed",properties:{list_name:o,product_count:r.length,products:r}})},500)}catch(e){console.error(e)}}),e.bus.on("pmw:pixel:select-item",e=>{r(e)}),e.bus.on("pmw:pixel:view-item",e=>{r(e)}),e.bus.on("pmw:pixel:add-to-cart",e=>{r(e)}),e.bus.on("pmw:pixel:view-cart",e=>{r(e)}),e.bus.on("pmw:pixel:begin-checkout",e=>{r(e)}),e.bus.on("pmw:pixel:add-shipping-info",e=>{r(e)}),e.bus.on("pmw:pixel:add-payment-info",e=>{r(e)}),e.bus.on("pmw:pixel:search",e=>{r(e)}),e.bus.on("pmw:pixel:purchase",e=>{r(e)})}(window.pmw=window.pmw||{})},4939(){var e;(e=window.pmw=window.pmw||{}).loadMixpanelPixel=()=>{try{t=document,(r=window.mixpanel||[]).__SV||(window.mixpanel=r,r._i=[],r.init=function(e,t,a){function n(e,t){var r=t.split(".");2==r.length&&(e=e[r[0]],t=r[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var p=r;for(void 0!==a?p=r[a]=[]:a="mixpanel",p.people=p.people||[],p.toString=function(e){var t="mixpanel";return"mixpanel"!==a&&(t+="."+a),e||(t+=" (stub)"),t},p.people.toString=function(){return p.toString(1)+".people (stub)"},i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),o=0;o<i.length;o++)n(p,i[o]);var s="set set_once union unset remove delete".split(" ");p.get_group=function(){function e(e){t[e]=function(){call2_args=arguments,call2=[e].concat(Array.prototype.slice.call(call2_args,0)),p.push([r,call2])}}for(var t={},r=["get_group"].concat(Array.prototype.slice.call(arguments,0)),a=0;a<s.length;a++)e(s[a]);return t},r._i.push([e,t,a])},r.__SV=1.2,(a=t.createElement("script")).type="text/javascript",a.async=!0,a.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===t.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",(n=t.getElementsByTagName("script")[0]).parentNode.insertBefore(a,n)),window.mixpanel.init(pmwDataLayer.pixels.mixpanel.project_token,e.getMixpanelConfig()),pmwDataLayer.pixels.mixpanel.loaded=!0,e.console.log("Mixpanel: pixel loaded"),e.mixpanelIdentifyUser()}catch(a){console.error(a)}var t,r,a,n,i,o},e.getMixpanelConfig=()=>{const e=pmwDataLayer?.pixels?.mixpanel||{},t={api_host:e.api_host,track_pageview:!1,persistence:"cookie",autocapture:!!e.autocapture};
2return e.session_recording&&(t.record_sessions_percent=100,t.record_heatmap_data=!0),t},e.mixpanelIdentifyUser=()=>{try{if(!pmwDataLayer?.pixels?.mixpanel?.user_identification)return;if("function"!=typeof window.mixpanel?.identify)return;const t=pmwDataLayer?.user?.id?.raw;if(!t)return;window.mixpanel.identify(String(t));const r="pmw_mixpanel_profile_"+String(t);if(window.sessionStorage?.getItem(r))return;const a={};if(pmwDataLayer?.user?.email?.raw&&(a.$email=pmwDataLayer.user.email.raw),pmwDataLayer?.user?.first_name?.raw&&(a.$first_name=pmwDataLayer.user.first_name.raw),pmwDataLayer?.user?.last_name?.raw&&(a.$last_name=pmwDataLayer.user.last_name.raw),pmwDataLayer?.user?.phone?.raw&&(a.$phone=pmwDataLayer.user.phone.raw),pmwDataLayer?.user?.city?.raw&&(a.$city=pmwDataLayer.user.city.raw),pmwDataLayer?.user?.state?.raw&&(a.$region=pmwDataLayer.user.state.raw),pmwDataLayer?.user?.country?.raw&&(a.$country_code=pmwDataLayer.user.country.raw),!Object.keys(a).length)return;window.mixpanel.people.set(a),window.sessionStorage?.setItem(r,"1"),e.console.log("Mixpanel: user profile identified",{distinct_id:String(t)})}catch(e){console.error(e)}},e.mixpanelTrackEvent=t=>{try{if("function"!=typeof window.mixpanel?.track)return;if(!t?.event_name)return;const r=t.properties||{};window.mixpanel.track(t.event_name,r),e.console.log("Mixpanel: "+t.event_name+" event sent",r)}catch(e){console.error(e)}}},4315(e,t,r){r(4566),r(4939),r(2104)}}]);
3//# sourceMappingURL=pixel-mixpanel.457419a9.chunk.min.js.map

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.