I cant manage to track Single Page Apps (Angular) with Google Tag Manager

Discussão em 'Angular' iniciado por Adam, Novembro 14, 2024.

  1. Adam

    Adam Guest

    Hi I have setup Google Tag Manager and added the script in the index file following the instructions and I added the AngulariticsModule, Angularitics2GoogleTagManager.

    But when I go to Google Tag Manager and view Realtime Overview. I can see that it works up correctly showing the current page that the user is in but when I go to a different page it doesn't update the activePage. but under the activatedPage I see an event coming in for the pageview with the new page that I just went to and even the history because I added some tags. However the only way I found to change the ActivaPage is to Refresh the page.

    you can see in this picture that I initiated the page in the appointments but even if I changed it and I did get the page view and history saying that I changed the page but the active page still says appointments [​IMG]

    I am using: @angular/cli 17.3.8

    Continue reading...

Compartilhe esta Página