-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting a custom tracking api parameter #153
Comments
I think the best idea would be a combination of the following two features:
This way one could create a custom |
Is your maybe it's possible to make it simpler and just have one method like in the PHP tracker, that will set the custom tracking parameter. Similar to 'setResolution', 'setUserId' etc |
Events in this SDK are rather "things that should be tracked". So an event could be a view, a download, an exception and so on. Those events are quite atomically. There is barely a situation where one would set any data on the Tracker class directly. In the iOS SDK you create an event and dispatch it via the tracker. There are shortcuts on the Tracker, like |
Hi @brototyp do you think it would be possible to prioritise this little feature? It would be awesome to have as it would let anyone track the not-yet-supported-by-SDK features, such as Media Analytics requests: https://developer.piwik.org/guides/media-analytics/custom-player#media-analytics-http-tracking-api-reference |
Hi @mattab, yes I will try to do that. Thanks for nudging. It takes a while to figure out this feature without exposing to much internals, and thus have to guarantee that they don't change soon. |
Good news! It just got merged to the development branch and will be part of the next release. Please check this part of the readme for more details. |
Sometimes, new Piwik core releases or even any new plugin may add new parameters to the Tracking API. In those cases it is often not possible to make changes to all necessary SDKs, so the idea is to let user customise the tracking URL.
-> It would be great to have such a method in 4.0.0 beta 👍
Fyi in the PHP SDK we have implemented the following:
For example users may want to override the Geo location info of country, region and city of a visitor (see matomo-org/matomo#11563 (comment) for more info how to achieve this without having to set the token_auth)
refs #82 (comment)
The text was updated successfully, but these errors were encountered: