What is $matomo? I don’t know this tracking object…
If this is the tracker object (and not the _paq tracking stack), not sure you can track the dimension within the event. In this case, you have to .setCustomDimension (customDimensionId, customDimensionValue) before the .trackEvent('UserInteractions', 'EventA', '', 50);
We work in a Nuxt 2 application with https://github.com/pimlie/nuxt-matomo for the integration of Matomo. But as I understand it, $matamo is the tracker object on which I can execute all the actions.
If I view the dimension directly in the event track, I can see in the database in the matomo_log_link_visit_action table that this information is set in the columns for the custom dimensions. But I can’t seem to see or evaluate this information anywhere in the Matomo UI.
I have to test again how the behavior is when I set the values using setCustomDimension, because these are Visit Custom Dimensions if I understand that correctly. Because in this case I have to change these values quite often during a visit. I don’t know if that’s good/right.
Another question: Is there no way to output and process the Custom Dimensions in a CustomReport?
I don’t understand why you are looking directly in matomo_log_link_visit_action table, as information is not easy to extract form this…
Why don’t you use the visits log? Visit custom dimensions are visible on the left, and Action custom dimensions by hovering the action itself…
For custom report, as this is a premium plugin, you can ask directly to the support team by email… (but custom dimensions are available in custom report, I use them…)
Can you confirm the tooltip (that displays custom dimension) is on the userinteraction or on the goal?
What is your goal? trigger a goal on a custom dimension, or attach a custom dimension to a goal?