Migrate from legacy wts client to @webiny/wts-client v3#788
Merged
SvenAlHamad merged 1 commit intomasterfrom May 8, 2026
Merged
Migrate from legacy wts client to @webiny/wts-client v3#788SvenAlHamad merged 1 commit intomasterfrom
SvenAlHamad merged 1 commit intomasterfrom
Conversation
Replaces the git-URL-pinned `wts` dep with the npm-published @webiny/wts-client@^3 — a TypeScript rewrite that actually proxies through t.webiny.com instead of loading Heap directly. Removes the inline Heap loader and the Banquet tracking script from _document.js. PostHog is now the sole destination via the t.webiny.com proxy; Heap is no longer fanned out to. Removes the broken legacy integration in _app.js — the setTimeout 500ms dance plus `Router.onRouteChangeComplete` (note: that's not a real Next.js Router API; route-change pageviews never fired). Replaces it with a proper React-context provider mounted in _app.js, which auto-tracks page-view events using router.asPath on every route change. GTM and Kapa.ai widget kept as-is. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces the git-URL-pinned
wtsdep with the npm-published @webiny/wts-client@^3 — a TypeScript rewrite that actually proxies through t.webiny.com instead of loading Heap directly.Removes the inline Heap loader and the Banquet tracking script from _document.js. PostHog is now the sole destination via the t.webiny.com proxy; Heap is no longer fanned out to.
Removes the broken legacy integration in _app.js — the setTimeout 500ms dance plus
Router.onRouteChangeComplete(note: that's not a real Next.js Router API; route-change pageviews never fired). Replaces it with a proper React-context provider mounted in _app.js, which auto-tracks page-view events using router.asPath on every route change.GTM and Kapa.ai widget kept as-is.
Short Description
Relevant Links
Checklist
What You'll Learnat the top of the page and every item in the list starts with a lower case letteralt/titleattributes for inserted images (if any)next/v5branch)Screenshots (if relevant):
N/A