Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
mattab opened this Issue · 1 comment

1 participant

@mattab
Owner

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
Owner

(In [4416]) Fixes #2301

@mattab mattab added this to the Piwik 1.3 milestone
@mattab mattab self-assigned this
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.