-
Notifications
You must be signed in to change notification settings - Fork 729
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
Use Google Analytics 4 ID for v1.6 via head-end hook #2963
Conversation
Signed-off-by: Patrice Chalin <[email protected]>
Signed-off-by: Patrice Chalin <[email protected]>
Signed-off-by: Patrice Chalin <[email protected]>
@@ -27,7 +27,7 @@ disableKinds = ["taxonomy", "term"] | |||
|
|||
# Google Analytics | |||
[services.googleAnalytics] | |||
id = "UA-149338238-3" | |||
id = "UA-00000000-0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bogus GA ID so that the Docsy page-feedback feature keeps on working.
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
|
||
gtag('config', 'G-60C6Q1ETC1'); | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The real GA4 ID is setup here.
3b1663b
to
addee52
Compare
Signed-off-by: Patrice Chalin <[email protected]>
addee52
to
c38434d
Compare
continue-on-error: true | ||
run: | | ||
for name in `find . -name "*.md"`; do echo -e "------\n$name" ; mm.py -l $name || exit 1 ;done | ||
|
||
for name in `find . -name "*.md"`; do echo -e "------\n$name" ; mm.py -l $name ;done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied the same solution that I did to the v1.7 docs, given that v1.6 are also legacy docs. Link-checking will report errors but not fail the build.
Build is green now, PTAL @greenie-msft et al. |
Stale PR, paging all reviewers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note that the version of Hugo used to build v1.6 docs is too old, it doesn't support GA4, so I added the GA4 ID via a head-end hook.
/cc @msfussell @greenie-msft