Open mattab opened 6 years ago
Dear @mattab I'd be interested into the support for Custom Dimension
especially giving the above matomo-org/matomo#11524 and some issues I am finding in having Custom Variables
handled with log analytics: matomo-org/matomo#12960. I could work on contributing generic support for Custom Dimensions
if you can point me to the API specifications the bulk API expects (I wasn't able to find them, only for the generic JS tracker).
Hi @kaplun Sounds great if you can work on this issue. You'll need to use the CustomDimensions API to get/create custom dimensions: https://developer.matomo.org/api-reference/reporting-api#CustomDimensions Let me know if you need more help or guidance
fyi @mattab moving this into current sprint as we now need to support custom dimensions in Matomo 4 I suppose (since we no longer have custom variables in core)
Currently Log Analytics uses the Custom Variables feature in various ways:
Bot
orNot-Bot
, see--enable-bots
Http-code
Parsing any log field or custom field in a custom variable, see
--w3c-field-regex
--regex-group-to-visit-cvar
--regex-group-to-page-cvar
As we are planning to deprecate Custom Variables in https://github.com/piwik/piwik/issues/11524 it is necessary to change our use of Custom Variables and use Custom Dimensions instead.
Solution
So we need to use Custom Dimensions them to track
The script will therefore now need to fetch the list of dimensions available for the site, and possibly create a new custom dimension if it does not exist yet.
Maybe we should keep the existing features using Custom Variables for BC?