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.

How to access data set in cookies/localstorage on the store page from a checkout extension?

How to access data set in cookies/localstorage on the store page from a checkout extension?

abmills
Shopify Partner
1 0 1

Our app tracks referrals from affiliates and needs to attribute a purchase made by a customer to a particular affiliate in our external system. To do this we currently set a cookie on the myshopify domain with referrer data based on the link the customer used to access the store.

 

We are now building a new checkout ui extension which needs to send the referral data to our external api. However, it seems that cookies and localstorage are both disabled in checkout extensions. Is there any way to access data set on the store page after checkout?

 

 

Replies 0 (0)