Unique Identifier For Guest Customer

arnav98
Shopify Partner
26 1 7

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)