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

HOTFIX - Fix analytics page tracking events #403

Merged
merged 4 commits into from
Nov 21, 2024

Conversation

dgcohen
Copy link
Contributor

@dgcohen dgcohen commented Nov 21, 2024

Hotfix for analytics bug where page routes without a query string were emitting a homepage view event. This was caused by the use of a -1 ending index in a substring function, which returns an empty string.

This was missed in QA for the bib release page, and I assume we didn't notice it when we released the search results because most routes have a query string.

There are no unit tests for trackVirtualPageView since it has a void return type, but I'll separate this logic out to add unit tests as a fast-follow.

Copy link

vercel bot commented Nov 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
research-catalog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 9:26pm

@dgcohen dgcohen requested a review from EdwinGuzman November 21, 2024 21:23
@dgcohen dgcohen marked this pull request as ready for review November 21, 2024 21:23
@dgcohen dgcohen changed the title HOTFIX - fix analytics page tracking events HOTFIX - Fix analytics page tracking events Nov 21, 2024
@dgcohen dgcohen merged commit 6a9cf30 into production Nov 21, 2024
3 checks passed
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.

2 participants