Skip to content

Conversation

@briandoyle81
Copy link
Contributor

@briandoyle81 briandoyle81 commented Sep 25, 2025

Add events to the header.

  • If the user is on the homepage, use the Action Card event type so that it shows up with metrics for other frontpage items.

@vercel
Copy link

vercel bot commented Sep 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Sep 26, 2025 6:10pm

Copy link
Contributor

Copilot AI left a 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.

@briandoyle81 briandoyle81 changed the title Add Events to Header only on Homepage Add Google Events to Header Sep 26, 2025
Copy link
Contributor

Copilot AI left a 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.

briandoyle81 and others added 5 commits September 26, 2025 13:51
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>
@briandoyle81 briandoyle81 merged commit 54648b7 into main Sep 26, 2025
3 checks passed
@briandoyle81 briandoyle81 deleted the brian-doyle/update-events-header branch September 26, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants