Hello
Is the below correct to pass the order ID? A client of ours using Shopify is unable to pass the order ID. Their Shopify contact asked us to reach out to this community.
'adv_sub': event.data.checkout.order?.id
Cheers
Hello
Is the below correct to pass the order ID? A client of ours using Shopify is unable to pass the order ID. Their Shopify contact asked us to reach out to this community.
'adv_sub': event.data.checkout.order?.id
Cheers
Hi Ambaan,
Thanks for your query.
To get the all event parameters including checkout value use a datalayer in custom pixel .
Hello
Thanks for your reply.
I guess a use of datalayer is required only when they want to send the data to GTM. Is that correct?
At the moment, the client is using the ‘Recording Conversions on Checkout without Additional Scripts’ option here: https://support.tune.com/hc/en-us/articles/1500008231942-Integrating-with-Shopify
Please refer to the step 2. in the code there.
In that case, if they want to send the order id data to our ‘adv_sub’ parameter, is the below correct to get the order id from the event object.
analytics.subscribe("checkout_completed", (event) => {
tdl.convert({
'adv_sub': event.data.checkout.order?.id,
'amount': event.data.checkout.subtotalPrice?.amount
})
});
Regards