Question about cookie handling


Hi all,

I’m trying to write a tracker for Piwik in my favorite language :wink: However I have a hard time understanding how cookies are handled. When I send a tracking request to piwik I only seem to get a cookie identifying the visitor when I enable the use_third_party_id_cookie setting. Is this correct? How should I set the cookie then if Piwik doesn’t give me a visitor id? Create one?

Then, apart from the cookie piwik_visitor = xyz there is the _id query string parameter. What is the difference between the two? Aren’t they the same id?


(Matthieu Aubry) #2

Currently, Tracking classes do not handle first party cookies (only the normal JS tracker does).
We could add this feature (optional disabled by default probably), but this hasn’t been a requested feature.
if you submit a patch that is good we would love to include it though :wink: