PageView and DataLayer does not update

Hello, I am trying to integrate Matomo Tag Manager into a SPA and I have a problem with the PageView and the DataLayer:

  1. After the script has loaded successfully the first PageView coming from the script itself is fired and the page view can be seen in matomo itself, calling the page vie event manuall does not work, I can see in that it contains my pushed event but nothing happens
    (I push it via _mtm.push({ event: “mtm.PageView”})). Am I doing something wrong? Currently I fallback to trackPageView which tracks the page views perfectly fine

  2. The DataLayer in the Debug Preview does not update but the values in the MatomoTagManager.dataLayer.values returns the correct DataLayer