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

Google Analytics 4 Tag - Data not received #90

Open
jacoporepossi opened this issue Jun 10, 2022 · 2 comments
Open

Google Analytics 4 Tag - Data not received #90

jacoporepossi opened this issue Jun 10, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacoporepossi
Copy link

jacoporepossi commented Jun 10, 2022

Hi there,

I'm having some issue switching from GA to GA4, as the tag changes from UA-xxxxx to G-xxxxx.
I simply tried to change my _config.yml but with no success.

Any idea on how to fix the tracking?
Perhaps the google-analytics.html should be updated following what has been done in the minima example? It looks like they switched from https://www.google-analytics.com/analytics.js to https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}

Thank you!

@jacoporepossi
Copy link
Author

As a test, I tried to update my google-analytics.html following the minima example I linked before and now it works.

However I don't know if my solution is reliable or not since I was not the author in the first place 😄

Repository owner deleted a comment from SRombauts Jun 24, 2023
@jeffreytse jeffreytse self-assigned this Jun 24, 2023
@jeffreytse jeffreytse added the enhancement New feature or request label Jun 24, 2023
@jeffreytse
Copy link
Owner

Hi @jacoporepossi,

I just update to support GA4, please see #112. Thanks for supporting YAT theme.

Thanks & Regards

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

No branches or pull requests

2 participants