Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Why are REST landing_site and GraphQL CustomerVisit landingPage different? (referral attribution)

Why are REST landing_site and GraphQL CustomerVisit landingPage different? (referral attribution)

davekeql
Shopify Partner
10 0 9

I'm having trouble reconciling REST API's "landing_site" and GraphQL customerJourneySummary > lastVisit > landingPage.   I'm finding that they are different for the same order, where I would expect them to be the same.

 

REST landing_site:  https://shopify.dev/docs/api/admin-rest/2023-07/resources/order#resource-object

"The URL for the page where the buyer landed when they entered the shop."

 

https://shopify.dev/docs/api/admin-graphql/2023-07/objects/CustomerJourneySummary

GraphQL customerJourneySummary > lastVisit > landingPage

lastVisit:  "The last session before an order is made."

landingPage: "URL of the first page the customer landed on for the session."

 

Sometimes they're completely different, sometimes they kinda match, haven't found a particular rhyme or reason.

 

I'm trying to properly attribute affiliate referrals.  It seems like the REST landing_site, which is included on Orders webhook, is the more accurate.  But GraphQL usually represents the direction Shopify is headed, and customerJourneySummary has a lot of info, so I'm trying to future proof myself...

 

Anyone know why they're different and what they actually represent?

 

 

Replies 2 (2)

JackJack1
Shopify Partner
15 0 4

Hi Davekeql,

 

Were you able to find a solution? What was your final approach based on your experience?

 

Thanks

Djedjeska
Shopify Partner
3 0 0

How is there no reply to this question? I find it very important for people who try to migrate from REST to GraphQL as it is now advised by Shopify themselves.
I have the same problem of inconsistent landing pages and would appreciate if there was an answer to this question