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

Update Google Analytics tag to v4 #931

Open
lhilarides opened this issue Aug 22, 2023 · 4 comments
Open

Update Google Analytics tag to v4 #931

lhilarides opened this issue Aug 22, 2023 · 4 comments
Labels
QC Quality check (client revision)

Comments

@lhilarides
Copy link
Collaborator

Could the Google Analytics be updated to the following:

<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-JMJEG8GFH6"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-JMJEG8GFH6'); </script>

@mluena
Copy link
Collaborator

mluena commented Aug 25, 2023

Ready @lhilarides

@mluena mluena added the QC Quality check (client revision) label Aug 25, 2023
@lhilarides
Copy link
Collaborator Author

lhilarides commented Aug 31, 2023

Hi @mluena , Thanks for picking this one up. I just checked the analytics, but no data is being collected (the data stream does not seem to be active). I'm not an expert on GA, but when I look at the HTML source code, I don't see the tag, which should be placed on every page right after the <head> element. Potentially has something to do with migration from UA to GA4. Could you look into this please? Thanks!

@lhilarides
Copy link
Collaborator Author

Reading Google's howto on integrating the GA4 tag, it looks like it should be inserted here:
image

Currently the data stream is not active, so we can't use analytics

@mluena
Copy link
Collaborator

mluena commented Sep 7, 2023

I am sorry @lhilarides I haven't got time to look into this, I'll check everything tomorrow and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QC Quality check (client revision)
Projects
None yet
Development

No branches or pull requests

2 participants