Skip to content

Migrate from legacy wts client to @webiny/wts-client v3#788

Merged
SvenAlHamad merged 1 commit intomasterfrom
feat/wts-v3
May 8, 2026
Merged

Migrate from legacy wts client to @webiny/wts-client v3#788
SvenAlHamad merged 1 commit intomasterfrom
feat/wts-v3

Conversation

@SvenAlHamad
Copy link
Copy Markdown
Contributor

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.

Short Description

Relevant Links

Checklist

  • I added page metadata (description, keywords)
  • I've added "Can I Use This?" section (if needed, e.g. if documenting a new feature)
  • I added What You'll Learn at the top of the page and every item in the list starts with a lower case letter
  • I used title case for titles and subtitles (in the main menu and in the page content)
  • I checked for typos and grammar mistakes
  • I added alt / title attributes for inserted images (if any)
  • When linking code from GitHub, I did it via a specific tag (and not next / v5 branch)

Screenshots (if relevant):

N/A

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>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-webiny-com Ready Ready Preview, Comment May 8, 2026 3:02pm

Request Review

@SvenAlHamad SvenAlHamad merged commit 569e21c into master May 8, 2026
2 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.

1 participant