Snowplow Cookie suffix

Hi,

I just came across, that the snowplow cookies _sp_id and _sp_ses (or equivalent customized cookie names) have a tracker/endpoint specific suffix. I can’t find anything in the documentation except a hint that it might be related to the anonymous tracking feature. Does anyone know how that suffix is “calculated”?

Example from Snowplow Website:

Current use case: internal cookie documentation.
David

@davidher_mann, the suffix is the hash (SHA1) of the domain name followed by forward slash - the first 4 characters of that hash.

import hash from 'sha1';
console.log(hash('.snowplow.io/').slice(0, 4))
>>>
a9eb
3 Likes