Add analytics tracking attributes for key funnel links [CORE-1462] #2811
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.
Summary
Adds analytics tracking attributes to important funnel events that were not being tracked in analytics. With the analytics helper, we just need to add
data-analytics-linkordata-analytics-navattributes to enable link click tracking.Changes
✅ "Using this book?" and "Sign up to learn more" buttons
src/app/pages/details/common/let-us-know/let-us-know.tsxdata-analytics-linkattribute to the<a>tag in theButtonWithIconcomponent✅ Assignable page CTAs (3 links in top section)
src/app/pages/assignable/sections/banner/banner.tsxdata-analytics-nav="Assignable CTAs"to thebutton-rowcontainer div✅ Tech partner list on instructor resources tab
src/app/pages/details/desktop-view/instructor-resource-tab/partners/partners.tsxdata-analytics-nav={title}to theblurb-scrollerdiv that contains the partner list items✅ "Buy print" / "Bookstore order" section
src/app/pages/details/common/get-this-title-files/order-print-copy/order-print-copy.tsxdata-analytics-nav="Order print copy"to the<nav>elementTest Plan
Related
Jira: https://openstax.atlassian.net/browse/CORE-1462
🤖 Generated with Claude Code