Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate 1st party cookie #557

Closed
robocoder opened this issue Feb 18, 2009 · 3 comments
Closed

Duplicate 1st party cookie #557

robocoder opened this issue Feb 18, 2009 · 3 comments
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.

Comments

@robocoder
Copy link
Contributor

From discussion in http://forum.piwik.org/index.php?showtopic=217

Depends on: #409

@robocoder
Copy link
Contributor Author

On second thought, this doesn’t depend on 409, but the client (piwik.js) needs to know/reconstruct the 3rd party cookie name.

We do need #408 fixed (possibly in conjunction with this ticket).

A first party cookie set by the client is sent as a URL param, eg PK_FPC (we could have a default and allow it to be set, ala cookie_name on the server).

Since first- vs third-party depends on whether Piwik is hosted on the same domain as the site being tracked, I’ll refer to the current implementation as “legacy cookies”.

User stories:
- Legacy client, New visitor: Server sets legacy cookie
- Legacy client, Returning visitor: Client sends legacy cookie. Server reuses cookie.
- New client, New visitor: Client sets FPC. Server adopts FPC.
- New client, Returning Visitor: Client sets FPC and deletes (expires) legacy cookie. Server reuses FPC and clears the legacy cookie if received. (ie some browsers won’t delete cookie until session has ended/browser closed).

Need to add documentation re: P3P policy for IE6+.

@robocoder
Copy link
Contributor Author

Building on the new piwik.js, the implementation stalled on how the client would initialize the fpc (first time). Theoretically, we could implement the JavaScript equivalent of md5(uniqid(rand(), true)) /\* i.e., idvisitor in the current cookie implementation */

See http://phpjs.org for JavaScript equivalents of various PHP functions.

Dependencies:
- #408 allows the server to accept the client generated cookie and add it to the database.
- #409 shortens the cookie to simply contain idvisitor

@mattab
Copy link
Member

mattab commented Jun 3, 2010

Rolling in the requirements of this ticket into #409

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For issues that already existed in our issue tracker and were reported previously. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants