I need help understanding how Shopify’s landing_site field works for Order objects. My client wants detailed info about this attribute.
From what I understand, this field captures the initial page someone visits when they first arrive at the store. But I’m confused about a few things:
How long does this value stick around?
Does it change if the same person comes back later through a different entry point?
For example, let’s say someone first visits the homepage, so landing_site gets set to “/”. Then they return a few days later through a product link like “/products/cool-item?utm=campaign123”. Will the landing_site value update to this new URL or stay as the original homepage?
Also wondering if there’s any way to manually clear or reset this value. This seems like important info for tracking customer journeys but the docs don’t go into these details.
Anyone know how this actually works behind the scenes?
The landing_site field is honestly pretty unpredictable since it’s tied to Shopify’s session handling. From what I’ve seen, it usually sticks around for your browser session but gets overwritten when a new session kicks off from a different entry point. In your case, if the customer comes back days later through that product link, landing_site would probably update to show the new entry point - enough time has passed for the session to expire. But if they came back during the same browsing session or had cookies keeping their session alive, it might keep the original value. You can’t manually clear this field through the API since Shopify manages it automatically. The documentation is pretty vague about session duration, which makes it tough to rely on for tracking customer journeys. I’d recommend adding custom UTM tracking or other analytics tools if you need more reliable entry point data.