Skip to content

fix(tracking): passive section view [Fixes #18047]#18050

Open
myelinated-wackerow wants to merge 1 commit intodevfrom
fix/remove-passive-section-view-tracking
Open

fix(tracking): passive section view [Fixes #18047]#18050
myelinated-wackerow wants to merge 1 commit intodevfrom
fix/remove-passive-section-view-tracking

Conversation

@myelinated-wackerow
Copy link
Copy Markdown
Collaborator

@myelinated-wackerow myelinated-wackerow commented Apr 27, 2026

Description

The new homepage (PR #17972, launched 2026-04-20) shipped six TrackedSection wrappers that auto-fired section_view Matomo events via IntersectionObserver, with no user input. These were added for the Feb–Mar A/B test (70e44a5524, a7f5e3e0b2) and were not cleaned up post-launch.

Matomo classifies any visit with nb_actions >= 2 as a non-bounce, and events count as actions. Because the homepage auto-fired events on scroll while no other page does, its bounce-rate metric became incomparable to the rest of the site, to its own pre-launch baseline, and to the A/B test's variant A (which showed 26–28% bounce when instrumented identically vs ~56% for the same design without instrumentation). The apparent post-launch improvement from ~56% to ~33% is largely an instrumentation artifact rather than a behavior change.

Changes

  • Remove all six TrackedSection wrappers from app/[locale]/page.tsx (kpi, savings_carousel, trust_logos, simulator, feature_cards, get_started).
  • Delete src/components/TrackedSection.tsx (no other consumers).
  • Add a short comment above trackCustomEvent in src/lib/utils/matomo.ts flagging it as user-initiated only, with the bounce-rate rationale, to prevent recurrence.

User-click tracking is unchanged: cta_click, modal_select, section_click, cta_swipe, modal_open, modal_close all stay — every event tied to a real interaction is preserved.

Notes

Test plan

  • Verify homepage renders unchanged across locales (LTR + RTL)
  • Confirm in browser DevTools that no section_view events fire on scroll
  • Confirm user-click events (cta_click, section_click, etc.) still fire as before
  • After deploy, watch Matomo for the homepage nb_actions distribution to revert toward baseline

Generated by Claude (Opus 4.7)

Related issue

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 5e845ad
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69efa772b48b170009e234bc
😎 Deploy Preview https://deploy-preview-18050.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 57 (🟢 up 8 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Apr 27, 2026
Six TrackedSection wrappers on the new homepage auto-fired section_view events via IntersectionObserver with no user input. Matomo counts events as actions, so the homepage's bounce rate became incomparable with other pages and pre-launch baselines (apparent 56% -> 33% post-launch was largely an instrumentation artifact). Removes the wrappers from app/[locale]/page.tsx, deletes the unused component, and adds a comment on trackCustomEvent flagging it as user-initiated only to prevent recurrence.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: wackerow <54227730+wackerow@users.noreply.github.com>
@myelinated-wackerow myelinated-wackerow force-pushed the fix/remove-passive-section-view-tracking branch from 099f54b to 5e845ad Compare April 27, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove passive section_view events from new homepage to restore comparable analytics

1 participant