SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

First-Party Cookies for Analytics.js to Function

Question

What first-party cookies does Segment drop for analytics.js to function properly?

 

Product

Twilio Segment

 

Environment

Segment Console

 

Answer

To manage identity and ensure analytics.js functions correctly, Segment drops three core first-party cookies as soon as your site loads:
  • ajs_anonymous_id: Automatically tracks anonymous visitors.
  • ajs_user_id: Tracks the logged-in user (created via an identify() call).
  • ajs_group_id: Tracks account/company relationships (created via a group() call).
To keep this information active even if a user refreshes the page, Segment also saves these IDs, along with any ajs_user_traits and ajs_group_properties, in the browser's local storage.

 

Additional Information 

For complete technical details and cookie expiry timelines, please refer to our Segment Cookie Documentation.

 

Have more questions? Submit a request
Powered by Zendesk