Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support on GTM and Google analytics configuration #662

Open
ghisleouf opened this issue Feb 6, 2025 · 1 comment
Open

Support on GTM and Google analytics configuration #662

ghisleouf opened this issue Feb 6, 2025 · 1 comment

Comments

@ghisleouf
Copy link

Hi Partytown,

I'm trying to post my message here because I'm not sure who has the right answer to my question.
My goal is to have GTM and GA working fine through Partytown.

I have setup partytown on our Nuxt website which is supposed to integrate Google Tag Manager where Google analytics has been configured to trigger page_view event on every page view :)

I've tested gtm config on a basic web with standard and default GTM configuration ... it works as expected on the test page (which is totally different from our nuxt website).

The integration seems to be OK.

I can see that the script is injected on the built website (we are using SSR):

Image

Image

and finally:

Image

It seems that GTM is loaded ... but there no trace (in request) of any Google Analytics request or call. I have no error anywhere (as far as I can see). In Google Anlaytics, I cannot see any view.

I think I'm misunderstanding something (in the scrip calls or in the config).
Could you please tell me what I'm missing or doing wrong?

Thanks a lot for your help.

PS: My original post is here: nuxt-modules/partytown#498

@ITakayuki
Copy link

I have the same problem.
However, it may work fine in MacOS FireFox.
It doesn't work as expected in MacOS Chrome and MacOS Safari.

Also, even if I can call analytics.js in FireFox, it stops with the error TypeError: NetworkError when attempting to fetch resource..

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants