Articles on: Miscellaneous

Customizing Cookies Recovery

Cookie recovery is a feature that makes it possible to keep cookies that have been deleted by Safari active after 7 days. This functionality is activated by default when you use one of our plugins. If a plugin is not used or because a custom solution is chosen for other reasons, you can use the documentation below to set up cookie recovery.





A master cookie is required for this functionality. Based on this, Cookie Recovery will restore the user's cookies. The recommended procedure is as follows:

Setting the cookie must be done via the server response. The server's IP address must not differ by more than the last two octets.
When loading each page, the server must set a cookie (for example, we call it 'user_id'):
A combination of a hash of the user's IP address and a timestamp can be used as a value for the cookie.

The validity period of the cookie: 2 years.
Domain of the cookie: .your-domain.com
Only via HTTP: no
Protected: yes

After the cookie has been created you must set it in the web script. This can be done as follows in the tagging dashboard:



1 -> enable cookie recovery
2 -> set platform to "Custom"
3 -> set cookie name to the same as the cookie name you chose when creating the cookie

Updated on: 04/01/2024

Updated on: 15/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!