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

First party cookie with server side store #2680

Closed
robocoder opened this issue Sep 26, 2011 · 1 comment
Closed

First party cookie with server side store #2680

robocoder opened this issue Sep 26, 2011 · 1 comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@robocoder
Copy link
Contributor

With the implementation of first party cookies in #409, the reliance on client-side cookie storage is growing. This is causing problems where sites are using multiple trackers and/or amassing more content in the cookie.

Requirements:

  • a single client side cookie per tracking server
  • server-side storage for the bulk of the corresponding cookie's contents
  • ability to track multiple site IDs

Benefits of a smaller cookie:

  • lowers risk of failed tracking requests; less overhead in the HTTP request
  • less data exposed to third-parties who peek into document.cookie

Impact:

  • database: increased storage requirements; slower tracker performance; requires a cleanup mechanism (to mimic cookie expiry)
  • this is not going to be backwards compatible; so targeting for Piwik 2.0

Misc:

  • piwik.js has become somewhat bloated; also, while the coding convention used allows for true private variables, JavaScript coding practices have moved towards the prototype model; so, we may want to consider this for a rewrite
  • the js/ proxy could browser sniff, and serve out a smaller version of piwik.js which uses the browser's native JSON (e.g., FF3.5+, IE8+; not sure about Safari/Chrome/Opera)
@mattab
Copy link
Member

mattab commented Dec 14, 2012

I thikn such work would be included in this ticket: #2750 Life Time Value of a customer (which will require a visitor store to keep of track of lifetime values)

@robocoder robocoder added this to the Future releases milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants