Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVDOCS-6261: [update] add visitor IDs to session sync #824

Merged
merged 6 commits into from
Feb 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/storefront/headless/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,12 @@ mutation ValidateJwt{
</Tab>
</Tabs>

### Persisting analytics session IDs

To improve tracking consistency across different contexts, the GraphQL API now allows consumers to pass a visitor ID when performing session sync mutations. The visitor ID acts as a unique identifier linking a user's activity across different sessions. This feature ensures that analytics session IDs remain persistent, even as users navigate between different parts of the storefront or across multiple touchpoints.

By passing a visitor ID in your session sync requests, you can maintain a cohesive user session structure and gain more accurate insights into customer behavior. This is particularly useful for businesses that rely on analytics tools to track user behavior across headless storefronts, native checkouts, and other digital touchpoints.

## Next step

- [Learn how to create a channel and a channel site](/docs/storefront/headless/channels)