Enhanced User Identification¶
The iPixel sets the first-party cookie iDSP_Cookie to identify users. Each subsequent request to your website includes this cookie. To enhance user identification, iPixel strongly recommends that you do the following on the back-end of your site:
Whenever you see the cookie iDSP_Cookie in an HTTP request, set the HTTP response such that it includes a header that sets a new first-party HTTP cookie _iDSP_Cookie (adding the underscore in the beginning) with a one-year expiration date.
- The value of this cookie should be the same as the value of the corresponding cookie passed in the request.
- The domain for the cookie should be your site, prefixed with a period. For example, if your site is
mysite.com, the domain attribute should be.mysite.com. Note: do not include "www". - The path for the cookie should be
/. - Do not set the cookie to be
HttpOnly.
For example, if your site sees an HTTP request where the value of cookie iDSP_Cookie is xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, then add to your response the header:
Set-Cookie: _iDSP_Cookie=xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx; Expires=«One Year from Today»; Domain=«.mysite.com»; Path=/; SameSite=Lax;
NOTE
This needs to be done on every request which contains iDSP_Cookie in the HTTP request.