How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

How do I add embedded analytics to a Next.js App Router app?

calendar_today November 4, 2026 person (Justin Mathew), (Ritushree Chakraborty) domain thoughtspot

In a Next.js App Router app, put the ThoughtSpot Visual Embed SDK in a Client Component: a ‘use client’ file that calls init() once at the top, behind a typeof window check, and renders the embed. Mint authentication tokens in a Route Handler, and render the component from your Server Component page. Calling init() from a Server Component fails the build.

open_in_new Read original post