Repository navigation
chore: report docs to main-site GA4 and track code and prompt copies - #3075
Merged
Merged
Conversation
killme2008
marked this pull request as ready for review
December 3, 2026 09:10
Deploying greptime-docs with
|
| Latest commit: |
bf8849a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://6c55a2e5.greptime-docs.pages.dev |
| Branch Preview URL: | https://chore-ga4-main-site-property.greptime-docs.pages.dev |
sunchanglong
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
docs.greptime.com and docs.greptime.cn only reported to its own GA4 property (
G-BYNN8J57JZ), so docs traffic was missing from the greptime.com property (G-NZ5YFGCPMY). Both the English and Chinese builds now configure both IDs.Page views on route change and the
AgentOnboardingevents are sent withoutsend_to, so they go to both properties.The code block copy button now sends a
code_copyevent withpage_pathafter a successful copy.AgentOnboardingkeepsagent_onboarding_copyand also sendsprompt_copywithpage_pathandcopy_source: 'docs_agent_onboarding', the same shape the greptime.com site uses.Scope
Verification
pnpm buildandDOC_LANG=zh pnpm build: generated pages containgtag("config", ...)for both IDs. On the served build, clicking a copy button pushes["event", "code_copy", {"page_path": "/getting-started/installation/greptimedb-standalone/"}]todataLayer. Clicking the prompt copy button on/pushesagent_onboarding_copyand["event", "prompt_copy", {"page_path": "/", "copy_source": "docs_agent_onboarding"}].Checklist