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

mattab opened this Issue Apr 12, 2011 · 1 comment

1 participant

Piwik Open Source Analytics member

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
Piwik Open Source Analytics member

(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