A user identifier (user ID) is used by different channels (e.g. GA4) to help stitch a unique user's shopper journey/session.
Elevar's user ID is used by default, which utilizies the following:
- Shopify's long-lasting server-set cookie
- Device fingerprinting that doesn't rely on cookies
For special circumstances, you can provide your own function by doing the following:
Then, when any data layer event is pushed, the following user ID will be used:
Updated about 1 month ago