# Subject: Accessing UTM Parameters on Thank You and Order Status Pages for Targeting

**URL:** <https://community.shopify.dev/t/subject-accessing-utm-parameters-on-thank-you-and-order-status-pages-for-targeting/23861>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [October 14, 2025, 1:07pm UTC](https://community.shopify.dev/t/subject-accessing-utm-parameters-on-thank-you-and-order-status-pages-for-targeting/23861 "2025-10-14T13:07:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameergshah](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/sameergshah/32/7919_2.png) [@sameergshah](https://community.shopify.dev/u/sameergshah)\
**Post date:** [October 14, 2025, 1:07pm UTC](https://community.shopify.dev/t/subject-accessing-utm-parameters-on-thank-you-and-order-status-pages-for-targeting/23861/1 "2025-10-14T13:07:21Z")

</div>

Issue:  
We need to access UTM parameters (source, medium, campaign, etc.) on Shopify’s checkout thank you  
page and order status page for customer targeting, but struggling to retrieve this data  
consistently.

Current Approach:  
Using customerJourney and customerJourneySummary fields in GraphQL queries to get UTM data:

customerJourney {  
moments {  
… on CustomerVisit {  
utmParameters {  
source  
medium  
campaign  
term  
content  
}  
}  
}  
}

Problems:

1. UTM data not always populated in customer journey
2. Inconsistent availability between thank you vs order status pages
3. Missing UTM context for guest checkouts
4. Timing issues - UTM data appears delayed or incomplete

Questions:

1. Is there a more reliable method to capture UTM parameters during checkout?
2. Should we use checkout extensions to capture this data earlier in the flow?
3. Are there specific Shopify APIs designed for UTM parameter tracking?
4. What’s the recommended approach for UTM-based post-purchase targeting?

Environment:

- Shopify Admin API 2024-10
- Post-purchase and order status page integrations
- Need UTM data for immediate targeting decisions

Any guidance on reliably accessing UTM parameters for targeting would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![KyleG-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyleg-shopify/32/6799_2.png) [@KyleG-Shopify](https://community.shopify.dev/u/KyleG-Shopify)\
**Post date:** [October 15, 2025, 4:46pm UTC](https://community.shopify.dev/t/subject-accessing-utm-parameters-on-thank-you-and-order-status-pages-for-targeting/23861/2 "2025-10-15T16:46:52Z")

</div>

Hey @sameergshah, the inconsistent UTM data you’re experiencing with `customerJourney` is expected behavior. The `customerJourney` and `customerJourneySummary` fields rely on customer tracking consent and cookies, which means UTM data won’t populate when customers haven’t consented to tracking, are using private browsing/ad blockers, or are going through guest checkout without cookie consent. Additionally, customer journey attribution can take up to 48 hours to process after order creation.

Have you considered using the **Web Pixels API** instead for more customizable tracking?  
Check out the [Web Pixels API documentation](https://shopify.dev/docs/api/web-pixels-api) and the [build web pixels tutorial](https://shopify.dev/docs/apps/marketing/pixels/getting-started) to see if it would work.

---

<div class="post-metadata">

**Author:** ![KyleG-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyleg-shopify/32/6799_2.png) [@KyleG-Shopify](https://community.shopify.dev/u/KyleG-Shopify)\
**Post date:** [October 21, 2025, 7:55pm UTC](https://community.shopify.dev/t/subject-accessing-utm-parameters-on-thank-you-and-order-status-pages-for-targeting/23861/3 "2025-10-21T19:55:03Z")

</div>

Hey @sameergshah, did the above help clarify this at all?
