Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5981

[SPA & Tag Manager] History Change: how to get the new title? support

$
0
0

Hi,
I have a SPA in React and I’m trying to track PageViews using Tag Manager via History Change.
I’ve followed this guide: https://developer.matomo.org/guides/spa-tracking
So I’ve already set the Matomo Configuration Variable with {{PageTitle}} and {{PageUrl}}.

The views are being tracked but Matomo shows the old page title (the url is correct) because the History change is fired before the document title updates.

How can I show the correct page title in Matomo?

Thanks in advance

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5981

Trending Articles