-
Notifications
You must be signed in to change notification settings - Fork 78
Add Google Events to Header #1481
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Pull Request Overview
This PR adds Google Analytics event tracking to the homepage navigation elements and browse-by-category links. The tracking uses the same event type as existing action cards to ensure consistent analytics reporting.
- Adds click tracking to navigation bar items (Build, Tutorials, Protocol, Ecosystem) that only fires on the homepage
- Adds click tracking to category links in the homepage's "Browse by Category" section
- Includes TypeScript improvements and null safety checks in the Docusaurus configuration
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/ui/design-system/src/lib/Pages/HomePage/BrowseByCategory.tsx | Adds GA event tracking to category links with handleLinkClick function |
| docusaurus.config.js | Adds homepage-only GA tracking to nav items and improves TypeScript safety |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add events to the header.