LogoShipTanStarter Docs

Analytics

Learn how to configure analytics for your ShipTanStarter application

ShipTanStarter uses Google Analytics to track website traffic and user behavior.

Setup

Configure Environment Variables

Add the following environment variable to your .env file:

VariableDescription
VITE_GOOGLE_ANALYTICS_IDGoogle Analytics tracking ID

Verify Integration

Analytics components are in the src/components/analytics/ directory. Once the environment variables are set, analytics components are automatically enabled in production.

If you are setting up your environment, you can now go back to the Environment Configuration and continue. The rest of this document can be read later.

On this page