Do shopify provides UTM param in webhooks? or How much time is taken for UTM params to show on customerJourney field of orders

I want to know does shopify provides UTM params in webhook, when a user purchases a product/checkout using the utm url?

Or else I know order field also has a field Customer Journey, But how much exact time does it take to show up on API call

Thank you

Shopify does not natively include UTM parameters in webhooks for purchases or checkouts. However, UTM parameters can be tracked and associated with marketing activities through the use of marketing events or activities. You can use the marketingActivityCreateExternal mutation to create marketing activities and associate UTM parameters with them.

RE: the customerJournery object - are you seeing a delay in the expected data showing up on this?

1 Like

Thank you for your response,

I am actually calling the API of Order with CustomerJourneySummary after ORDER_PAID webhook immediately but getting null for it. But after sometimes recalling the API we get the customerJourneySummary.

So we want to know the exact time for it. There is a delay of 5-10 minutes, But if we get to know exact time it will be really helpful.

Hi @adflipr

Have you double checked that the sourceName of the order is actually the online store?

If the order is sourced from a POS, or another app/marketplace, then it’s possible the customer journey isn’t available because that is tracked by the online store only.

order.sourceName docs:

1 Like

I tried this and got the order as:

{
    "id": "id://shopify/Order/{OrderId}",
    ...
    "sourceName": "web"
}

However, I actually want UTM data. For example, if a user abandons a checkout and later completes it using a URL with UTM parameters, such as:
https://{storeName}.myshopify.com/{checkoutSubPath}?utm_campaign=&utm_medium=&utm_source=adflipr

Shopify stores this data, but I need help understanding when it is stored for the order.

I am not sure it is possible, but I think you can consider adding UTM params as customAttributes of order.

Maybe Web Pixels more closely fit the bill for what you’re looking for?

That way you can directly access these marketing events, then report them back to your API.