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

Universal analytics vs Google analytics 4 #47

Closed
handrigg opened this issue Aug 31, 2023 · 1 comment
Closed

Universal analytics vs Google analytics 4 #47

handrigg opened this issue Aug 31, 2023 · 1 comment

Comments

@handrigg
Copy link

Hello,

I understand that universal analytics (UA-xxxxxxxx) is no longer tracking analytics and has been replaced by Google analytics 4 (GA4). Is GA4 supported by this theme? If so, how do you configure it?

Thanks.

@handrigg
Copy link
Author

handrigg commented Sep 1, 2023

Resolved my own issue, here. A rarity!

In case others are interested, it was relatively straightforward. I believe that Hugo includes a template for GA4 and it was as simple as updating the googleAnalytics in the yaml with the GA-xxxxxxx ID provided by google analytics. Also, I added the information contained in the 'insert manually' google tag (gtag.js) to just after the element in the head.html file located in /themes/educenter-hugo/layouts/partials folder. After, I re-built the site and uploaded it. Within 24 hours I had data flowing.

@handrigg handrigg closed this as completed Sep 1, 2023
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

1 participant