On-Premise CAID
The CAID cookie is a crucial element in tracking visitors to your site.
Used by Commanders Act, it identifies and tracks a visitor's path through different browsing sessions. Its construction is essential, especially in the context of restrictions imposed by privacy and security policies such as ITP (Intelligent Tracking Prevention). You must build it yourself in the case of "First Party" tracking via CNAME or A-Record, but it is not necessary if you use a proxy. In this documentation, you'll find all the information you need to build an ITP.
KEY POINTS FOR THE "CAID" COOKIE CREATION INSTRUCTIONS :
Cookie name :
Name: "CAID" (in uppercase).
Cookie structure recommendation :
Contains 20 random digits.
Preceded by the year the cookie was created.
Service life :
Expiry date: 13 months after creation by default (GDPR)
You can adjust the cookie duration according to the legal restrictions of the region where the site is visited.
Creation and Registration :
Created by the company's server.
Deposited on the main domain and all associated sub-domains. (.mydomain.com)
Accessibility :
Secure = true
httpOnly = true
Ex. CAID = 2024013114175312331154022
PHP Example
Node.js Example (package ‘express‘)
Python Example (avec Flask)
Ruby Example
Last updated