PageSourceSearch

https://morninglightmusic.io/wp-content/plugins/pixel-manager-pro-…/pixel-contentsquare.8f3a685c.chunk.min.js

js morninglightmusic.io collected 2026-10-04 13:25:58 UTC 3,045 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([[784],{2703(){!function(e){const t=new class{adapt(e,t,a){const r=`adapt${this.toPascalCase(t)}`;return"function"==typeof this[r]?this[r](e,a):null}toPascalCase(e){return"string"!=typeof e?"":e.replace(/(^|_)(\w)/g,(e,t,a)=>a.toUpperCase())}adaptAddToCart(e,t){return{event_type:"add_to_cart",sku:e.product?.sku||e.product?.id,merchant:window.location.hostname}}adaptPurchase(e,t){const a=Object.values(pmwDataLayer?.order?.items||{}).map(e=>({id:pmwDataLayer?.order?.id?.toString(),sku:e.sku||e.id?.toString(),price:e.price?.toString(),quantity:e.quantity?.toString(),name:e.name,category:e.category?.join(" > ")||""})),r=Math.round(100*Number(pmwDataLayer?.order?.value?.total))/100;return{event_type:"transaction",transaction:{id:pmwDataLayer?.order?.id?.toString(),revenue:r,currency:pmwDataLayer?.order?.currency?.toLowerCase()},items:a}}};e.registerAdapter("contentsquare",t,{supportsS2S:!1,supportsEventDeduplication:!1,isActive:()=>!!pmwDataLayer?.pixels?.contentsquare?.tag_id})}(window.pmw=window.pmw||{})},5518(){var e;(e=window.pmw=window.pmw||{}).bus.on("pmw:load-pixels",function(){pmwDataLayer?.pixels?.contentsquare?.tag_id&&!pmwDataLayer?.pixels?.contentsquare?.loaded&&e.consent.canPixelBeFired("statistics","Contentsquare")&&e.loadContentsquarePixel()}),e.bus.on("pmw:pixel:add-to-cart",t=>{if(pmwDataLayer?.pixels?.contentsquare?.loaded&&e.shouldFireBrowserPixel(t,"contentsquare"))try{const a=t.pixels?.contentsquare;if(!a)return;e.contentsquareTrackAddToCart(a)}catch(e){console.error(e)}}),e.bus.on("pmw:pixel:purchase",t=>{if(pmwDataLayer?.pixels?.contentsquare?.loaded&&e.shouldFireBrowserPixel(t,"contentsquare"))try{const a=t.pixels?.contentsquare;if(!a)return;e.contentsquareTrackTransaction(a)}catch(e){console.error(e)}})},3661(){var e;(e=window.pmw=window.pmw||{}).loadContentsquarePixel=()=>{try{window._uxa=window._uxa||[];let e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://t.contentsquare.net/uxa/"+pmwDataLayer.pixels.contentsquare.tag_id+".js";let t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),pmwDataLayer.pixels.contentsquare.loaded=!0}catch(e){console.error(e)}},e.contentsquareTrackAddToCart=t=>{try{window._uxa=window._uxa||[];let a={sku:t.sku?.toString(),merchant:t.merchant};window._uxa.push(["trackPageEvent","addToCart"]),window._uxa.push(["ec:cart:add",a]),e.console.log("Contentsquare: add_to_cart event sent",a)}catch(e){console.error(e)}},e.contentsquareTrackTransaction=t=>{try{window._uxa=window._uxa||[],window._uxa.push(["ec:transaction:create",t.transaction]);for(let e of t.items)window._uxa.push(["ec:transaction:items:add",e]);window._uxa.push(["ec:transaction:send"]),e.console.log("Contentsquare: purchase event sent",t)}catch(e){console.error(e)}}},1673(e,t,a){a(2703),a(3661),a(5518)}}]);
3//# sourceMappingURL=pixel-contentsquare.8f3a685c.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.