matomo-org / matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
https://matomo.org/log-analytics/
GNU General Public License v3.0
224 stars 118 forks source link

Use Custom Dimensions instead of Custom Variables (for Bots/Http-Status tracking and the feature --w3c-field-regex and --track-http-method) #188

Open mattab opened 6 years ago

mattab commented 6 years ago

Currently Log Analytics uses the Custom Variables feature in various ways:

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?

kaplun commented 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).

mattab commented 6 years ago

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

tsteur commented 4 years ago

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)