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:
| Variable | Description |
|---|---|
VITE_GOOGLE_ANALYTICS_ID | Google 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.