In-app popups, NPS & hello bars for Next.js apps
TinyPopups integrates with Next.js (App Router and Pages Router) via a single next/script tag — no heavy NPM UI library or React version lock-in. Pass logged-in user traits with window.tinypopups.identify() and fire custom events with track() to run feature announcements, NPS, CSAT, and upgrade nudges from $19/mo.
- Add <Script> in app/layout.tsx: Import Script from 'next/script' in your root app/layout.tsx (or pages/_app.tsx) and render your TinyPopups CDN tag with strategy='afterInteractive'.
- Identify logged-in SaaS users (optional): Inside a small 'use client' auth listener (Clerk, NextAuth/Auth.js, Supabase), call window.tinypopups?.identify({ id: user.id, plan: user.plan }).
- Track key product events: Trigger contextual surveys or upgrade nudges anywhere by calling window.tinypopups?.track('project_exported') after user actions.
- Publish campaigns without redeploying Vercel: Design announcements, NPS popups, and PPP pricing-page hello bars visually in TinyPopups — go live instantly without a git push.
- Feature launch modals with YouTube demos: Show a show-once release popup with an embedded walkthrough on /dashboard.
- In-app 0–10 NPS & CSAT after value moments: Trigger a microsurvey right after track('workflow_completed') instead of sending cold emails.
- Trial-to-paid upgrade nudges: Target users where plan === 'free' when they hit usage limits or premium routes.
- PPP discount hello bar on /pricing: Automatically show regional purchasing-power coupon bars on your Next.js pricing route.
Frequently asked questions
Does TinyPopups work with the Next.js App Router and client-side routing?
Yes. Load the script once in app/layout.tsx using next/script with strategy='afterInteractive'. TinyPopups detects client-side route transitions across /dashboard, /pricing, and dynamic routes.
Does it work with Clerk, Supabase Auth, or Auth.js (NextAuth)?
Yes. Pass whatever user ID, email, or plan traits your auth hook exposes into window.tinypopups?.identify(...) inside a client useEffect.
Will TinyPopups increase my Next.js bundle size on Vercel?
Zero bytes added to your compiled Next.js bundle — it loads asynchronously after hydration from Cloudflare's CDN.
Can I use TinyPopups on both my Next.js marketing pages and /app dashboard?
Yes. One script in your root layout powers anonymous marketing hello bars/exit popups on '/' and '/pricing' plus trait-targeted announcements and NPS inside '/dashboard'.