matomo-org / matomo-nodejs-tracker

A Node.js wrapper for the Matomo (Piwik) tracking HTTP API
MIT License
118 stars 42 forks source link

Dimensions #49

Open OKNoah opened 6 years ago

OKNoah commented 6 years ago

Does this support custom dimensions? If so, perhaps it could be documented.

https://developer.matomo.org/guides/tracking-javascript-guide#custom-dimensions

Findus23 commented 6 years ago

Hi, this supports "everything" :slightly_smiling_face: as it just takes a dict and sends it to the tracking API.

You can find the documentation here: https://developer.matomo.org/api-reference/tracking-api

So if you want to set the first custom dimention to test you need to add 'dimension1': 'test'.

I haven't tested it so it would be great if you could report back.

Toub commented 4 years ago

Maybe adding an example in README page would be helpful. Related to #55

algorys commented 1 year ago

Hi @OKNoah and @Findus23 do you have an example to add dimensions?

Because I tried, but I don't see anything on matomo.

matomo.track({url: 'http://example.com/track/this/url', 'dimension1': "test"})

Thanks in advance

nguyentanvinh7a commented 1 year ago

Hi @OKNoah and @Findus23 do you have an example to add dimensions?

Because I tried, but I don't see anything on matomo.

matomo.track({url: 'http://example.com/track/this/url', 'dimension1': "test"})

Thanks in advance

Hi, I also faced this problem with you, haved you have a solution for this problem? Thanks.