PageSourceSearch

http://maplenation.ca/assets/google_analytics4-9a468da7c21d2e9e41cd445d567f3f3a5a9b6759.js.download

js maplenation.ca collected 2026-10-08 18:41:58 UTC 5,033 bytes, 2 lines download raw bytes

1function subscribeOnBodlEvents(n,e,t){var o;(window.dataLayer=window.dataLayer||[],window&&void 0!==window.bodlEvents)&&(!function(){if(t){var n={advertising:!1,analytics:!1,functional:!1};i("consent","default",e(n)),void 0!==window.bodlEvents.consent&&("function"==typeof window.bodlEvents.consent.loaded&&window.bodlEvents.consent.loaded((function(t){var o;o=t,Object.keys(n).some((function(e){return n[e]!==o[e]}))&&i("consent","update",e(t))})),"function"==typeof window.bodlEvents.consent.updated&&window.bodlEvents.consent.updated((function(n){i("consent","update",e(n))})))}function e(n){var e={advertising:["ad_storage","ad_user_data","ad_personalization"],analytics:["analytics_storage"],functional:["functionality_storage"]},t={};return Object.keys(n).forEach((function(o){var i=e[o],c=n[o]?"granted":"denied";Array.isArray(i)&&i.forEach((function(n){t[n]=c}))})),t}}(),(o=document.createElement("script")).src="https://www.googletagmanager.com/gtag/js?id="+n,o.async=!0,document.head.appendChild(o),i("js",new Date),i("set","developer_id."+e,!0),i("config",n),a(),function(){if(void 0!==window.bodlEvents.cart){var n="view_cart",e="add_to_cart",t="remove_from_cart";"function"==typeof window.bodlEvents.cart.viewed&&window.bodlEvents.cart.viewed((function(e){i("event",n,o(e))})),"function"==typeof window.bodlEvents.cart.addItem&&window.bodlEvents.cart.addItem((function(n){i("event",e,o(n))})),"function"==typeof window.bodlEvents.cart.removeItem&&window.bodlEvents.cart.removeItem((function(n){i("event",t,o(n))}))}function o(n){var e={currency:n.currency,items:Array.isArray(n.line_items)?n.line_items.map(r):[]};return e.value=n.product_value||n.cart_value||e.items.reduce((function(n,e){return n+e.price*e.quantity}),0),c(e)}}(),d(),u());function i(){dataLayer.push(arguments)}function c(e){return Object.assign({},e,{send_to:n})}function r(n,e){var t={item_id:n.sku||n.variant_sku||n.product_sku||n.variant_id||n.product_id,item_name:n.product_name,currency:n.currency,discount:n.discount,index:void 0!==n.index?n.index:e,item_brand:n.brand_name,item_variant:n.sku||n.variant_sku||n.product_sku||n.product_id,quantity:n.quantity};if(n.category_name)t.item_category=n.category_name;else if(n.category_names&&Array.isArray(n.category_names)){n.category_names.slice(0,5).forEach((function(n,e){t["item_category"+(e?e+1:"")]=n}))}return n.purchase_price?t.price=n.purchase_price:t.price=n.sale_price>0?n.sale_price:n.price,n.coupon&&(t.coupon=n.coupon),t}function a(){var n="begin_checkout",e="purchase",t="add_shipping_info",o="add_payment_info";function a(n){var e=Array.isArray(n.coupon_codes)&&n.coupon_codes.length?n.coupon_codes[0]:n.coupon,t={currency:n.currency,value:n.cart_value,items:n.line_items.map((function(n,t){return e&&(n.coupon=e),r(n,t)}))};return e&&(t.coupon=e),c(t)}void 0!==window.bodlEvents.checkout&&("function"==typeof window.bodlEvents.checkout.checkoutBegin&&window.bodlEvents.checkout.checkoutBegin((function(e){i("event",n,function(n){return c(a(n))}(e))})),"function"==typeof window.bodlEvents.checkout.orderPurchased&&window.bodlEvents.checkout.orderPurchased((function(n){i("event",e,function(n){var e=a(n),t={transaction_id:n.order_id||n.transaction_id,shipping:n.shipping_cost};return n.tax&&(t.tax=n.tax),c(Object.assign(e,t))}(n))})),"function"==typeof window.bodlEvents.checkout.shippingDetailsProvided&&window.bodlEvents.checkout.shippingDetailsProvided((function(n){i("event",t,function(n){var e=a(n),t={shipping_tier:n.shipping_method};return c(Object.assign(e,t))}(n))})),"function"==typeof window.bodlEvents.checkout.paymentDetailsProvided&&window.bodlEvents.checkout.paymentDetailsProvided((function(n){i("event",o,function(n){var e=a(n),t={payment_type:n.payment_type};return c(Object.assign(e,t))}(n))})))}function d(){if(void 0!==window.bodlEvents.product){var n="view_item",e="view_item_list",t="search";"function"==typeof window.bodlEvents.product.pageViewed&&window.bodlEvents.product.pageViewed((function(e){i("event",n,function(n){var e=n.line_items&&n.line_items.map((function(n){var e=r(n);return delete e.quantity,e})),t=e&&e[0]||{};return c({value:t.price,currency:t.currency,items:e})}(e))})),"function"==typeof window.bodlEvents.product.categoryViewed&&window.bodlEvents.product.categoryViewed((function(n){i("event",e,function(n){return c({item_list_id:n.category_id,item_list_name:n.category_name,items:n.line_items&&n.line_items.map((function(n){var e=r(n);return delete e.quantity,e}))})}(n))})),"function"==typeof window.bodlEvents.product.searchPerformed&&window.bodlEvents.product.searchPerformed((function(n){i("event",t,function(n){return c({search_term:n.search_keyword})}(n))}))}}function u(){if(void 0!==window.bodlEvents.banner){var n="view_promotion";"function"==typeof window.bodlEvents.banner.viewed&&window.bodlEvents.banner.viewed((function(e){i("event",n,function(n){return c({promotion_id:"banner_"+n.banner_id,promotion_name:n.banner_name})}(e))}))}}}
2//# sourceMappingURL=google_analytics4-9a468da7c21d2e9e41cd445d567f3f3a5a9b6759.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.