What's Changing?
Starting on September 15, 2025, Shopify will no longer set the following cookies on merchant storefronts:
_landing_page_orig_referrer_tracking_consent
This change is part of our ongoing effort to enhance privacy and streamline how customer data is handled across Shopify-managed storefronts.
Required Updates
If your code currently relies on these cookie values, you'll need to update it using our documented APIs. Here's how to effectively adjust:
Landing Page and Referrer Tracking
To track landing pages or referrer URLs, we recommend the following approaches:
- Use
window.location.hrefto capture the landing page URL. - Use
document.referrerto record the referring URL.
To persist these values across a user's session, consider leveraging the Web Pixels API.
For more advanced use cases, such as querying this information for orders, use the GraphQL Admin API. Example query:
query referrerData { order(id: "gid://shopify/Order/14134963208214") { customerJourneySummary { lastVisit { landingPage referrerUrl } } } } Managing Tracking Consent
To ensure compliance with privacy regulations and better manage customer consent, use the Customer Privacy API.
Next Steps
Take these actions before the deprecation date to ensure your store's functionality remains unaffected:
- Audit your codebase for any direct access to the deprecated cookies.
- Replace outdated cookie-related code with modern, API-based solutions.
- Test your updates thoroughly in a staging environment before deploying changes to your live store.
Need Help?
If you have questions or need assistance, refer to Shopify's documentation or contact Shopify Support for guidance.