Skip to content

fix(diam-362): tracking routing issues on niche artist page re-routes#16892

Open
dzucconi wants to merge 3 commits intomainfrom
DIAM-362-tracking-routing-issues-on-niche-artist-page-re-routes
Open

fix(diam-362): tracking routing issues on niche artist page re-routes#16892
dzucconi wants to merge 3 commits intomainfrom
DIAM-362-tracking-routing-issues-on-niche-artist-page-re-routes

Conversation

@dzucconi
Copy link
Member

@dzucconi dzucconi commented Mar 5, 2026

A few different issues interacting here. Thanks @xander-pero for the detailed issue.

Before

Screen-Shot-2026-03-05-08-12-03 64-9TBkxDWjdyXbhdFPup90maVmldoT5OhbnoaHndI92YSzGGCCGMsLXZrjRbAxRs1IDusjJikohyKpNykC1KbPgMBUOwWbLjKAFIPt

After

Screen-Shot-2026-03-05-08-11-03 47-g6xoMoJJFVNYANeuXoYS8F8utpTfa82Qr0oOHeOvnDObDuoQycqD9NtIncuHhh73NTUtTyrn6ubSs9Boh8UYrzQtk0UJwVZTKYym
  • Fixes duplicate/triple pageview firing on artist page redirects (/about, /auction-results, #JUMP-- hashes)
  • Uses window.history.replaceState instead of router.replace for hash cleanup to avoid triggering Farce's UPDATE_LOCATION
  • Excludes deprecated artist sub-routes from pageview tracking in the middleware
  • Preserves the original referrer across excluded redirect hops so the final pageview attributes correctly

cc @artsy/diamond-devs

@dzucconi dzucconi requested a review from anandaroop March 5, 2026 14:34
@dzucconi dzucconi self-assigned this Mar 5, 2026
}

scrollToSection()
}, [section, jumpTo, waitUntil, location.pathname, router])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff just is no longer relevant.

Copy link
Member

@anandaroop anandaroop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tricky!

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