Analytics

This page details how to set up and configure analytics in the ZTO SaaS Starter Kit.

Analytics Providers

There are two analytics providers available in the ZTO SaaS Starter Kit:

Using Google Analytics

In the .env file, it was explicitly specified analytics provider as google, and configure analytics google id.

NEXT_PUBLIC_ANALYTICS_PROVIDER=google
NEXT_PUBLIC_ANALYTICS_GOOGLE_ID=xxxxxxxxxxxxxxxxxxx

Using Plausible

In the .env file, it was explicitly specified analytics provider as plausible, and configure plausible url.

NEXT_PUBLIC_ANALYTICS_PROVIDER=plausible
NEXT_PUBLIC_ANALYTICS_PLAUSIBLE_URL=xxxxxxxxxxxxxxxxxxx