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

The internal GA template does not work with the new analytics version #7954

Closed
onedrawingperday opened this issue Nov 13, 2020 · 5 comments
Closed
Labels
Milestone

Comments

@onedrawingperday
Copy link
Contributor

The internal GA analytics template has been reported as non functioning with the new Google Analytics version.

Also see: https://discourse.gohugo.io/t/google-analytics-ga4-property-doesnt-work/29362

Related Issues: #7879 #7893

@olekstomek
Copy link

I had the same problem. Google Analytics 4 Property ID (G-XXXXXXXX) vs UA-XXXXXXX-X. I found solution by creating a Universal Analytics property.

Tracking ID and property number.

@debanjanbasu
Copy link

This needs to be addressed soon.

@torrayne
Copy link

Since analytics.js is not depreciated so I think we should support both UA-PROPERTY_IDanalytics.js and G-MEASUREMENT_IDgtag.js. I'm assuming a simple hasPrefix . "UA-" and hasPrefix . "G-" should be enough to tell the difference.

I will have to learn about implementing the same privacy options with gtag.


Anyone know why the functions are namespaced differently? There's hasPrefix and strings.HasSuffix.

@onedrawingperday
Copy link
Contributor Author

Since #8287 was merged I am closing this.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants