Matomo http api custom dimension

Hi,

I have 4 visit custom dimensions and 4 action custom dimensions. They have the same name.
Visit custom dimensions:
Id: 1 name: ShopName
id: 2 name: Country
id: 3 name: city
id: 4 name: Language

Action custom dimensions:
Id: 1 name: ShopName
id: 2 name: Country
id: 3 name: city
id: 4 name: Language

My issue is that I doing my request to matomo with the http api and only the visit custom dimensions have value in it. When I look at the custom dimension under behavior they are always empty.

I thought that I was missing the parameter ca=1 in my Matomo request but even if I add it the behavior custom dimensions are still empty.

Any idea what can be the issue ?

edit: I just want to point out that all the custom dimensions are active.

Hi,

I’d recommend you to temporarily enable https://developer.matomo.org/api-reference/tracking-api#debugging-the-tracker

This makes the matomo.php request respond with a verbose log that should help understand how the data is handled

When I enable the debug I see a response and the body have gif and a bunch of u\0001 i don’t understand how I am supposed to debug from this

After enabling the setting you shouldn’t get a gif anymore, but a normal text response. Make sure you have edited the correct section. (and if you also enabled debug_on_demand, only requests with &debug=1 will respond with a log)

Well I don’t have access to the config file that require to enable the debug_on_demand.

Finally the issue was that I didn’t use the right id in my request.

1 Like