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

PHP Tracker getVisitorId() should discover first party ID cookie (and add getAttributionInfo()) #2301

Closed
mattab opened this issue Apr 12, 2011 · 1 comment
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Apr 12, 2011

This is related to #2222, use case: third party tracking "after the fact". While #2222 proposes to the user to record the visitor ID and attribution data in some temporary data store, it is not always possible or easy to do so.

So, when the visitor itself will originate the Tracking API request, it would be easier if the Tracking API PHP client would provide the following function:

  • getVisitorId(): Already implemented, but returns a random ID. Instead, it should try and discover the first party cookie ID (via some regex magic since the cookie names have a random hash in them)
  • getAttributionInfo(): would return the content of the 'ref' cookie, which is a JSON encoded string
@mattab
Copy link
Member Author

mattab commented Apr 12, 2011

(In [4416]) Fixes #2301

@mattab mattab added this to the Piwik 1.3 milestone Jul 8, 2014
@mattab mattab self-assigned this 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.
Projects
None yet
Development

No branches or pull requests

1 participant