Use this guide when you want Cevoid to attach session IDs to browser events. Session tracking is optional and only starts after the SDK’s consent checks pass. For the runtime behavior behind this flow, use How It Works and Consent.Documentation Index
Fetch the complete documentation index at: https://docs.cevoid.com/llms.txt
Use this file to discover all available pages before exploring further.
What session tracking does
When session tracking is enabled, the SDK:- Resolves consent first
- Creates or refreshes a
cevoid_sidsession cookie - Attaches the session ID to tracked events when consent is granted
1. Turn on session tracking
Enable it ininit() or in the React component props.
2. Configure the cookie domain when needed
If your storefront spans subdomains, setcookieDomain so the session cookie is written where you need it.
- Your storefront runs on multiple subdomains
- You want the session cookie shared across those subdomains
3. Make sure consent is available
The SDK checks these consent sources before attaching a session ID:- Shopify Customer Privacy API
dataLayerconsent entries foranalytics_storagewindow.cevoidTrackingConsent
4. Verify the session flow
After initialization:- Look for the
cevoid_sidcookie in the browser - Trigger one or more tracked events
- Confirm your implementation path supplies consent before expecting a session ID
The in-memory fallback does not persist across full page reloads.
Example: Shopify storefront
Common mistakes
- Expecting a session ID without enabling
enableSessionTracking - Forgetting
cookieDomainwhen your storefront spans subdomains - Assuming missing session IDs mean events were dropped
- Testing before your consent source is available in the page