SEO, AdWords, affiliates, advertising, and promotions
Hello,
I want to grab the value of order.tags in a custom pixel.
I this possible?
analytics.subscribe("checkout_completed", (event) => {
gtag('event', 'test', {
orders_count: init.data.customer?.ordersCount,
url: event.context.document.location.href,
client_id: event.clientId,
orderId: event.data.order?.id,
currency: event.data?.checkout?.currencyCode,
value: event.data?.checkout?.totalPrice?.amount,
tags:event.data?.order?.tags
});
I tried something but it doesn't work.
Thank you for your help!
});
Hello Solar443,
Thanks for your query.
it is not going to work.as it is not the perfect datalayer for grabbing the order value.
you can try this purchase datalayer to track the purchase value with items array.
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024