I am writing a Single Page Application. I am using the MatomoTagManager, and have configured a tag that watches for PageView triggers. My initial page load is recorded. When I try to trigger a new PageView with javascript like this: window._mtm.push({‘event’: ‘mtm.PageView’});`, the event doesn’t get logged at all, nor generate a call to the server.
I also want to know how I can save a specific title and URL, not the ones from my website, a custom title and url. What I tried was to create two variables, customUrl and customTitle, and set the value of these variables from javascript like this:
window._mtm.push({‘customTitle’: ‘CustomTitle’})
window._mtm.push({‘customUrl’: ‘CustomUrl’})
And then in my Matomo Analytics Tag, use these variables when saving the title and url.
Thanks.
1 post - 1 participant