matomo-org / matomo-org/piwik-python-api

Make a set_user_id

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
103
Forks
41
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PiwikTracker class and reviewing how it builds Tracker API query parameters. Compare the requested User ID support with Matomo's direct Tracker API documentation and the existing API methods. Done means the Python API exposes a way to send the uid parameter, with coverage for the new behavior if tests are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.