How to retrieve UTM Parameters associated with orders through Webhook?

How to retrieve UTM Parameters associated with orders through Webhook?

Toko
Visitor
1 0 4

I'm developing a custom app for my store operation using Shopify's Graph QL.

I'm currently writing a logic to relay order-related information as a Deal to Hubspot after receiving an order webhook from Shopify. 

After the order payment is completed, I'm trying to retrieve the UTM parameters from the CustomerJourney object through API request to the server with admin_graphql_api_id retrieved from the webhook, but the UTM parameters are empty when the webhook is sent. However, when the API request is made again after the webhook is completed, the UTM parameters can be retrieved.

I would like to know the exact timing when the UTM data is written to CustomerJourney became available. 

Thank you for your help in advance, Arigato!

Replies 2 (2)

rohanrajpal
Shopify Partner
42 0 14

Hey Toko, did you manage to figure out when exactly the UTM params are added?

Founder | Spur Feel free to reach out to me at @rohanrajpal98 on Twitter

Adflipr
Shopify Partner
1 0 0

@Toko @rohanrajpal Did you got any leads for this?