order.tags to a custom pixel

order.tags to a custom pixel

solar443
Visitor
3 0 0

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!
});

Reply 1 (1)

Sam_Mahmud
Shopify Partner
192 4 10

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.

 

Datalayer for purchase Track.pngpurchase event in the GTM preview.png

 

Your COFFEE TIP! Can Create something incredible!
Require Assistance with website design or enhanced conversion tracking ?
sam.analyst4@gmail.com! or WhatsApp!
Solved? accept it as solution with like