Closed TijmenWierenga closed 2 years ago
Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://docs.snowplowanalytics.com/docs/contributing/contributor-license-agreement/ to learn more and sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.
I signed it!
Confirmed! @TijmenWierenga has signed the Contributor License Agreement. Thanks so much.
Thanks for the PR, looks good! We can wrap it into a 0.5.0 release shortly.
If you have the chance, I notice we're also missing vid
from the Subject too. Given how closely sid
and vid
are, it would make sense to add that too. setSessionIndex
perhaps makes sense.
vid | domain_sessionidx | Index of number of visits that this user_id has made to this domain e.g. 1 is first visit
I added the vid
too by adding the following setter:
$subject->setSessionIndex(1);
The Snowplow Tracker Protocol allows a unique identifier (UUID) for a session (
sid
). The current version of the PHP Tracker does not support adding a session ID to a subject. This pull request adds this feature.Usage: