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:
- UTM data not always populated in customer journey
- Inconsistent availability between thank you vs order status pages
- Missing UTM context for guest checkouts
- Timing issues - UTM data appears delayed or incomplete
Questions:
- Is there a more reliable method to capture UTM parameters during checkout?
- Should we use checkout extensions to capture this data earlier in the flow?
- Are there specific Shopify APIs designed for UTM parameter tracking?
- 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.