Add analytics analytics + ?registered=1 welcome notice

Featurekamo-login
Shipped
August 3, 2026 at 4:13 AM UTC
Author
Kamo
Commit
482868c

- Mount analyticsAnalytics client component in the root layout: next/script loader for analytics.kamocrm.com scoped via data-domains to login.kamocrm.com only (site is white-labeled; tenant org domains must never be tracked), with guarded window.analytics?.track typings. - Track a login-success event right before the post-login redirect fires. - Handle ?registered=1 from the register site with a success notice ("Your account has been created. Sign in to continue."), prefilling the email field from ?email= — same pattern as email_verified/linked.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing