A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello!
I have a question about REST API. I see there is a "landing_site" field in Order object. And documentation (https://shopify.dev/api/admin/rest/reference/orders/order) says "The URL for the page where the buyer landed when they entered the shop." - is it the URL when the buyer landed in session of order or when the buyer landed to the shop at first?
So I'm wondering if the buyer came first time on the shop yesterday and landed on URL shop.com/?utm_campaign=campaign1, but didn't buy and then today he landed on shop.com/?utm_campaign=campaign2 and placed an order. Which campaign will be in a "landing_site" field for this order?
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hey @denn1z
In my tests with the same buyer, as long as they are completing an order, if they hit a different URL than what the hit on the first order, then the landing_site would reflect the different URL. Thanks!
Hey @denn1z
So the value of landing_site would be dependent on whether or not the customer completed a finalised order.
The URL is the page where the buyer landed, so for example if buyer firsts head to mycoolstore.myshopify.com/collections, completes their contact info but closes their checkout session, that initial URL that the buyer landed on (/collections) wouldn't be returned when you call the Orders REST API, because buyer didn't complete an order.
When buyer returns to a different URL on same store, like mycoolstore.myshopify.com/products, and then completes the order, /products would be the landing_site value. Hope that helps!
Hey @Luke_K
Great, thank, it helps a lot!
One more question:
In your case, will then landing_site be "/products" for all the next orders of this buyer or it will change for each order with the same logic?
This is an accepted solution.
Hey @denn1z
In my tests with the same buyer, as long as they are completing an order, if they hit a different URL than what the hit on the first order, then the landing_site would reflect the different URL. Thanks!
Hi @Luke_K ,
I have another question for this topic. We can see a lot of our orders which don't have UTMs parameters in Shopify reports, but they have Landing_site field values with UTMs. So the question is: if they exist in landing_site, why they're not saved to UTM fields?
Thank you!
The landing_site field is returining characters and causing errors in our API. Is there a way to disable or change this field?