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 Universal Analytics and Google Analytics 4 IDs simultaneously #1106

Closed
wants to merge 2 commits into from

Conversation

chalin
Copy link
Collaborator

@chalin chalin commented Jul 15, 2022

This is a proposed solution for:

This PRs eases migration from UA to GA4 by allowing both IDs to be specified via the googleAnalytics configuration parameter.

I've proposed this change to the Hugo template here:

In the meantime, we might want to support a template override as given in the PR.


For context, we're in the midst of migrating CNCF projects. For details see:

/cc @nate-double-u

@chalin chalin requested review from deining and geriom July 15, 2022 20:21
@chalin chalin marked this pull request as draft July 18, 2022 16:05
@chalin
Copy link
Collaborator Author

chalin commented Jul 18, 2022

Set this as draft since I might have found a better way of dealing with migration that doesn't require more than one site tag ID. Will keep y'all posted of my progress, and either close or un-draft this PR accordingly.

@chalin
Copy link
Collaborator Author

chalin commented Aug 6, 2022

After much thought, I'm going to close this. I don't want to propose a Docsy feature that runs the risk of not being adopted upstream. This solution of supporting multiple IDs simultaneously, while interesting, feels like a special case of a more general need of supporting general config gohugoio/hugo#4479.

@chalin chalin closed this Aug 6, 2022
@chalin chalin deleted the chalin-ga-id-list-2022-07-15 branch August 6, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant