Skip to content
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

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 this issue Oct 8, 2017 · 3 comments · May be fixed by #290

Comments

@mattab
Copy link
Member

mattab commented Oct 8, 2017

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

  • Tracking whether user is Bot or Not-Bot, see --enable-bots
  • Tracking the HTTP Status code in a custom variable Http-code
  • Parsing any log field or custom field in a custom variable, see
    • --w3c-field-regex
    • and --regex-group-to-visit-cvar
    • and --regex-group-to-page-cvar

As we are planning to deprecate Custom Variables in matomo-org/matomo#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

  • whether a user is a bot or not,
  • the http status code of each action,
  • and the ability to parse any log field in a new (or existing) custom dimension.

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?

@mattab mattab changed the title Use Custom Dimensions instead of Custom Variables (for Bots/Http-Status tracking and the feature --w3c-field-regex) Use Custom Dimensions instead of Custom Variables (for Bots/Http-Status tracking and the feature --w3c-field-regex and --track-http-method) Dec 11, 2017
@kaplun
Copy link
Contributor

kaplun commented May 23, 2018

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
Copy link
Member Author

mattab commented May 23, 2018

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

kaplun added a commit to kaplun/matomo-log-analytics that referenced this issue May 28, 2018
* Integrate Custom dimensions, as a replacement for Custom
  Variables. (Closes matomo-org#188)

Signed-off-by: Samuele Kaplun <[email protected]>
kaplun added a commit to kaplun/matomo-log-analytics that referenced this issue May 29, 2018
* Integrate Custom dimensions, as a replacement for Custom
  Variables. (Closes matomo-org#188)

Signed-off-by: Samuele Kaplun <[email protected]>
kaplun added a commit to kaplun/matomo-log-analytics that referenced this issue May 29, 2018
* Integrate Custom dimensions, as a replacement for Custom
  Variables. (Closes matomo-org#188)

Signed-off-by: Samuele Kaplun <[email protected]>
@tsteur tsteur added this to the Current sprint milestone Jul 2, 2020
@tsteur
Copy link
Member

tsteur commented Jul 2, 2020

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)

sgiehl pushed a commit that referenced this issue Nov 17, 2020
* Integrate Custom dimensions, as a replacement for Custom
  Variables. (Closes #188)

Signed-off-by: Samuele Kaplun <[email protected]>
sgiehl pushed a commit that referenced this issue Nov 17, 2020
* Integrate Custom dimensions, as a replacement for Custom
  Variables. (Closes #188)

Signed-off-by: Samuele Kaplun <[email protected]>
@innocraft-automation innocraft-automation removed this from the Current sprint milestone Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants