docs
Analytics

Analytics

💡

NextSaaS utilizes Google Analytics to analyze web traffic, and it's completely free.

Setup Google Analytics

To set up Google Analytics for your NextSaaS website, follow the instructions provided in the Google Analytics documentation (opens in a new tab).

Hookup Google Analytics

NextSaaS seamlessly integrates with Google Analytics, triggering a page event on every route change. To prevent unnecessary noise, this event is only emitted in the production environment.

src/.env
NEXT_PUBLIC_GOOGLE_ANALYTICS = "{measurement_id}";