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

Use Google Analytics 4 ID for v1.6 via head-end hook #2963

Merged
merged 4 commits into from
Nov 30, 2022

Conversation

chalin
Copy link
Contributor

@chalin chalin commented Nov 18, 2022

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

Signed-off-by: Patrice Chalin <[email protected]>
Signed-off-by: Patrice Chalin <[email protected]>
@chalin chalin requested review from a team as code owners November 18, 2022 23:05
@chalin chalin mentioned this pull request Nov 18, 2022
11 tasks
@chalin chalin changed the title Use Google Analytics 4 ID for v1.6 Use Google Analytics 4 ID for v1.6 via head-end hook Nov 18, 2022
@@ -27,7 +27,7 @@ disableKinds = ["taxonomy", "term"]

# Google Analytics
[services.googleAnalytics]
id = "UA-149338238-3"
id = "UA-00000000-0"
Copy link
Contributor Author

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.

Comment on lines +5 to +12
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-60C6Q1ETC1');
</script>
Copy link
Contributor Author

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.

@chalin chalin force-pushed the chalin-gp-ga4-v1.6-2022-11-18 branch from 3b1663b to addee52 Compare November 19, 2022 16:56
Signed-off-by: Patrice Chalin <[email protected]>
@chalin chalin force-pushed the chalin-gp-ga4-v1.6-2022-11-18 branch from addee52 to c38434d Compare November 19, 2022 16:56
Comment on lines +38 to +40
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
Copy link
Contributor Author

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.

@chalin
Copy link
Contributor Author

chalin commented Nov 19, 2022

Build is green now, PTAL @greenie-msft et al.

@github-actions
Copy link

Stale PR, paging all reviewers

@github-actions github-actions bot added the stale label Nov 25, 2022
Copy link
Member

@msfussell msfussell left a comment

Choose a reason for hiding this comment

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

LGTM

@msfussell msfussell merged commit 9231f27 into dapr:v1.6 Nov 30, 2022
@chalin chalin deleted the chalin-gp-ga4-v1.6-2022-11-18 branch December 13, 2022 15:22
@yaron2 yaron2 added this to the 1.10 milestone Feb 4, 2023
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.

3 participants