//
//
//
//
// {% if first_time_accessed %}
//
// {% endif %}
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WWP3RMW');
// Step 2. Subscribe to customer events with analytics.subscribe(), and add tracking
// analytics.subscribe("all_standard_events", event => {
// console.log("Event data ", event?.data);
// });
analytics.subscribe("checkout_completed", event => {
window.dataLayer.push({
event: "purchase",
"value": event.data.checkout.totalPrice?.amount,
"currency": event.data.checkout.currencyCode,
"transaction_id": event.data.checkout.order?.id
});
});
analytics.subscribe("checkout_contact_info_submitted", event => {
ga("require", "ec");
ga("ec:setAction", "checkout", {
step: 1,
option: "contact_information",
});
ga("send", "event", "checkout", "contact information", {
nonInteraction: true,
});
});
analytics.subscribe("checkout_shipping_info_submitted", event => {
ga("require", "ec");
ga("ec:setAction", "checkout", {
step: 2,
option: "shipping_method",
});
ga("send", "event", "checkout", "shipping method", {
nonInteraction: true,
});
});
analytics.subscribe("payment_info_submitted", event => {
ga("require", "ec");
ga("ec:setAction", "checkout", {
step: 3,
option: "payment_method",
});
ga("send", "event", "checkout", "payment", { nonInteraction: true });
});
});})(self.webPixelsManager.createShopifyExtend('56262897', 'custom'));