Update Custom Dimension Without Pageview

I’d like to update a custom dimension for visitors once the page has already loaded and the tracking has already been completed for the page. I’ll be populating it with the results of another script that runs.

Is it possible to update dimensions for a user using js and php without triggering a new page view event?

Hi,
well if it s a Custom Dimension TypeOf Visitor you could update it with another event and attach the Custom Dimension.
This one would be valid for the time the user is on page.

Same goes for any other.

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

1 Like