Labels

Milestone

Assignee

1 participant

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