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.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025