Hey @謝紹壯,
The UTM parameters you see in the admin are part of the Order.customerJourney connection, which is currently only exposed through the GraphQL API. Using REST the referring_site field will usually contain the UTM params as well, but the most reliable way to get this info is through the GraphQL object.
JB | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
@_JB Any plans to make this available in the REST Order API (or through another REST endpoint) in the future?
In most cases, parsing the query parameters from the `landing_site` field works fine for our customers but would certainly be nice to be able to retrieve those additional Session Details data.
User | Count |
---|---|
13 | |
12 | |
8 | |
8 | |
5 |