matomo-org / piwik-python-api

Piwik API for Python
BSD 3-Clause "New" or "Revised" License
101 stars 43 forks source link

Make a set_user_id #22

Open bufke opened 5 years ago

bufke commented 5 years ago

https://matomo.org/docs/user-id/#user-id-with-direct-tracker-api-access

If you are using the Tracker API directly you may set the User ID via the Tracker API parameter &uid=USER_ID.

I was able to extend the PiwikTracker class and add this extra query param. It would be nice to have this in the python api itself. If helpful, I could submit a pull request. Cheers.