Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I'm attempting to use the CustomerJourney as a source of identifying conversions from specific landing pages. However I am noticing that some of my test orders have the `customerJourney` field as null. I'm not clear why this field would ever be null as the customer must have visited at least one page to make the order. What does it mean when this field is null and how would you track order conversions from landing pages if this field can't be relied on?
For reference, here is the query I am making:
{
orders(first: 10) {
edges {
node {
id
customerJourney {
daysToConversion
moments {
occurredAt
__typename
... on CustomerVisit {
id
landingPage
occurredAt
referralCode
referralInfoHtml
referrerUrl
source
sourceDescription
sourceType
utmParameters {
campaign
content
medium
source
term
}
}
}
}
}
}
}
}
Strange...when I just ran this same query it came back with results (see below). Although the 10 most recent orders didn't come back with anything. This was presumably due to my ringing the sales through Shopify POS and not through e-com, since this is just a test Shopify shop I'm using...
Thanks for digging in so quickly! Here's what my responses are looking like. for some unknown reason the first two orders behaved as expected (as yours do) and had a CustomerJourney. But subsequent orders since last night have had no data for the customerJourney field. This is a core element of an app I want to publish so I really need to understand what's happening behind the scenes here. I've tried making orders on Firefox and Chrome with adblockers off.
Searching the forums this appears to be a glitch that's happened before --> https://community.shopify.com/c/Shopify-Discussion/Conversion-tracking-is-not-available/td-p/581302. Hopefully someone from Shopify can comment as to what's currently going on with this.
Hey @devx,
I can confirm that it's not expected for every order to show a customer journey, as there are many factors that can prevent these details coming through to Shopify. Adblockers are a possibility as you mentioned, but other things can cause this as well such as a customer opening the checkout link on a different device.
You might be having trouble during testing if you place multiple test orders through the same browser, since it's possible the session cookie is being overwritten and causing unexpected results. If you haven't already, try making sure that you start each order in an incognito window or clear you cache before starting a new order. If you're still seeing an empty customerJourney response for an order placed incognito and without ad blockers, please provide the order_id and I'll check the logs for more information.
JB | Solutions Engineer @ Shopify
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022