New Shopify Certification now available: Liquid Storefronts for Theme Developers

Unique Identifier For Guest Customer

arnav98
Shopify Partner
24 1 5

Hi,

 

I am trying to find a way to store some unique id of a guest customer/visitor to the store to maintain a record of the interaction of the guest user against their activity on the store in the "app embed block" so if a guest comes back then I can show their past activity on the store.

 

The "{{ customer }}" object is empty when the user is not logged in, so I am only facing an issue for storing the activity of the guest customer, if and how does Shopify track guest customers, using localStorage/sessionStorage, or cookies?

I really appreciate any help you can provide.

Replies 0 (0)