Skip to content

Switch to Google Analytics 4 using Cortex's dedicated Google account #4814

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

Conversation

alvinlin123
Copy link
Contributor

@alvinlin123 alvinlin123 commented Aug 5, 2022

This PR addresses #4796.

After this PR, analytic data would be sent to Cortex's dedicated Google account instead of an individual's Google account.

Few notes

  • I needed to upgrade Hugo and Docsy to versions that support Google Analytics 4
  • I did not upgrade Hugo to the latest version (at the time of this PR latest version was 0.101.0) because it needs Go module version 1.18, which requires quite a bit of effort to upgrade.
  • Newer version of Docsy removed assets/vendor, so current way of using Git Submodule to install Docsy breaks. I can try to fix it, but I found it easier to just switch to using Hugo module, which is also Docsy's current recommended way.

@@ -1,9 +1,9 @@
{{ if .Path }}
{{ if .File.Path }}
Copy link
Contributor Author

@alvinlin123 alvinlin123 Aug 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is because in newer version of Hugo .Path is deprecated, and I saw an warning message during local build.

@friedrichg friedrichg changed the title Switch to Google Analytics 4 using Crotex's dedicated Google account Switch to Google Analytics 4 using Cortex's dedicated Google account Aug 5, 2022
@alvinlin123 alvinlin123 force-pushed the issue-4796-update-google-analytic-lib branch from fc0700d to bf233d3 Compare August 6, 2022 00:34
@alvinlin123 alvinlin123 mentioned this pull request Aug 6, 2022
Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Signed-off-by: Alvin Lin <alvinlin@amazon.com>
@alvinlin123 alvinlin123 force-pushed the issue-4796-update-google-analytic-lib branch from d93debe to ed7c7f8 Compare August 6, 2022 01:46
@alvinlin123 alvinlin123 marked this pull request as ready for review August 8, 2022 16:11
@alvinlin123 alvinlin123 merged commit 234bdde into cortexproject:master Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants