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.

REST API landing_site field

Solved

REST API landing_site field

denn1z
Tourist
13 0 5

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!

Accepted Solution (1)
Luke_K
Shopify Staff
402 66 102

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!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

Replies 5 (5)

Luke_K
Shopify Staff
402 66 102

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!

 

 

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
denn1z
Tourist
13 0 5

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? 

Luke_K
Shopify Staff
402 66 102

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!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
denn1z
Tourist
13 0 5

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!

zecomm
Visitor
1 0 0

The landing_site field is returining characters and causing errors in our API. Is there a way to disable or change this field?