This repository was archived by the owner on May 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Migrating from server side cookie to client side cookie
Benjamin Diolez edited this page May 5, 2026
·
1 revision
Data collection / JavaScript / Getting started / Migrating from server-side cookie to client-side cookie
We strongly advise our clients to no longer use a server-side cookie to measure visitors, and to instead move to measuring via client-side cookies.
We have made this choice for different reasons:
- Greater reliability when tracking unique visitors. Internet users are increasingly blocking (whether deliberately or not) third-party cookies (standard server-side cookies case). Safari, Opera and Firefox (private browsing) in particular block third-party cookies by default – a manual and deliberate action is required to authorise them.
- Lighter network traffic. To place our server-side cookie, our servers require redirection (invisible) to validate the placing of the cookie. This redirection causes an additional call from your site. Moving to client-side cookies makes it possible to avoid triggering this additional query.
- More consistent measurement methods. Measurement done via our mobile SDKs is systematically based on a client-side ID, as mobile applications cannot manage cookies. Moving to client-side cookies for the web makes it possible to unify how unique visitors are managed across different platforms. This also makes it possible to avoid handling specific cases for browsers that refuse third-party cookies, and to avoid having two types of tracking on a single site.
This migration will have several different impacts from an implementation and analysis point of view:
- Resetting new visitors. As the IDs of your unique visitors will all be new, our calculations will consider all visitors as new visitors once the switch is made. This phenomenon will disappear after your users visit a second time.
- Potential drop in number of unique visitors. Thanks to more reliable tracking of unique visitors, a user who may have previously been counted twice, due to refusal of third-party cookies, will now be effectively identified upon subsequent visits.
- Tagging via redirection will no longer be available. Campaign tagging via redirection, as well as clicks and impressions using /go. or /get. type URLs, cannot be used with first-party cookies.
To migrate, simply edit the corresponding option in your Tag Composer settings:
- Tick the box for the Client-side user ID feature, if this is not already the case (box is ticked by default)
- Edit the configuration for this feature, using the gear wheel icon to the right
- Set the Mode to Always
An example of a configuration using client-side cookies:

Last update: 01/07/2020
-
Data API
- Data flow
- Advice optimizations data flow
- Error codes data flow
- Faq data flow
- General information data flow
- Technical information data flow
- Reporting API v3
- Getting started
- Methods
- Parameters
- Technical information
- REST API
- Campaigns
- Custom variables
- Getting started rest
- Methods rest
- Response structure parameters rest
- Fixed periods
- Parameters compatibility
- Relative periods
- Structure of the response
- “code” parameter
- “columns” parameter
- “evo” parameter
- “filter” parameter
- “include” parameter
- “lng” parameter
- “max-results” parameter
- “page-num” parameter
- “period” parameter
- “period” parameter: “H” v. “He” & “MN” v. “MNe”
- “retention” parameter
- “segmentdesc” parameter
- “segment” parameter
- “sep” parameter
- “sort” parameter
- “space” parameter
- Technical specifications rest
- Data flow
-
Data collection
- Android
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- Apple
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Users
- General
- Cddc renew staging process
- Changelog
- Craft your hit
- Encoded parameters
- Server side cookie management
- Supported taggings
- Tagging deletion
- Utilisation of dispatch sdks
- JavaScript
- Advanced features
- Campaigns
- Changelog
- Content
- Ecommerce
- Getting started
- Partners javascript
- Users
- Piano Analytics
- Event tagging piano analytics
- Getting started piano analytics
- Piano analytics tagging
- Feeding piano analytics with as2 tagging
- Tagging custom properties sdk
- Android