-
Notifications
You must be signed in to change notification settings - Fork 52
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
Let users track Custom Dimensions #7
Comments
My biggest concern with adding this functionality to the core API is the same one that you expressed here, namely that it goes against pattern to have functionality in the core API that is currently only available via a plugin. It may be better currently to add the functionality for users to add custom tracking parameters to their requests, which appears to be the functionality in the js and php clients. This would allow users with the plugin to manually set the parameters, effectively allowing the functionality. I think it may be a good idea however to explore the idea of a plugin framework for this tracker - this would allow all plugin creators to be able to extend the core tracker to their own needs. I vote to add this functionality when dimensions are integrated into Piwik Core. Thoughts @tsteur, @mattab ? |
I had the same concerns when I added it for PHP-Tracker and made it generic there see: https://github.com/piwik/piwik-php-tracker/pull/15/files It's basically a method |
We'll go with adding the custom tracking parameter then until this feature is integrated with core. See #8 |
👍 |
…onents-httpasyncclient-4.1.5 Bump httpasyncclient from 4.1.4 to 4.1.5
In matomo-org/matomo#9129 we created a new plugin to track Custom Dimensions.
To the JavaScript Tracker we added a new method
setCustomDimension(int dimensionId, string dimensionValue)
. This sets a tracking API parameterdimension$dimensionId=$dimensionValue
. Egdimension1=foo
ordimension2=bar
. So the tracking API parameter starts withdimension
followed by the setdimensionId
.I reckon we should be consistent here with the PHP Tracker and clear all set custom dimensions after the next tracking request was sent.
eg
FYI: Custom Dimensions are similar to Custom Variables. Currently a plugin is needed to use them but in Piwik 3.0 it will be installed by default and at some point we will deprecate Custom Variables (not soon though)
The text was updated successfully, but these errors were encountered: