Order.tags to a custom pixel

Topic summary

A user is attempting to capture order tags in a custom pixel using the checkout_completed event subscription but encountering issues.

Problem:

  • The user tried accessing event.data.order?.tags within their analytics event tracking code, but this approach isn’t working.
  • They’re currently tracking other checkout data like customer order count, URL, order ID, currency, and total price.

Response:

  • Another participant confirmed that the current data layer implementation won’t work for grabbing order values.
  • They recommended using a purchase data layer instead, which includes an items array for tracking purchase values.
  • Visual references (images) were shared showing the required data structure and purchase tracking data layer format.

Status: The discussion remains open with a suggested alternative approach, but no confirmation yet on whether the solution resolves the original order tags issue.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

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.