You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If tracking is enabled, it appears that it only tracks a page view for the initial SSR page load, and not for further navigation via the Volto router. @sneridagh Is that intentional? Because it's surprising.
This is because the Matomo component only calls trackPageView when the component is first mounted (via useEffect). It needs the location/path as a dependency for that useEffect in order to track subsequent navigation.
The text was updated successfully, but these errors were encountered:
@davisagli as I mentionned yesterday, volto-matomo is another implementation that we're using on plone.org. It does have the dependency on path/location as you describe i its code:
If tracking is enabled, it appears that it only tracks a page view for the initial SSR page load, and not for further navigation via the Volto router. @sneridagh Is that intentional? Because it's surprising.
This is because the Matomo component only calls trackPageView when the component is first mounted (via useEffect). It needs the location/path as a dependency for that useEffect in order to track subsequent navigation.
The text was updated successfully, but these errors were encountered: