Analytics
Learn how to configure analytics tools for your ShipSaaS application
ShipSaaS supports multiple analytics tools to track website traffic and user behavior, including the following solutions:
- Google Analytics
- Umami Analytics
- Plausible Analytics
- Microsoft Clarity
Setup
Configure Environment Variables
Based on your chosen analytics tool, add the following variables to your environment variable file:
| Variable | Description |
|---|---|
VITE_GOOGLE_ANALYTICS_ID | Google Analytics tracking ID |
VITE_UMAMI_WEBSITE_ID | Umami Analytics website ID |
VITE_UMAMI_SCRIPT | Umami Analytics script URL |
VITE_PLAUSIBLE_SCRIPT | Plausible Analytics script URL |
VITE_CLARITY_PROJECT_ID | Microsoft Clarity project ID |
Verify Integration
The analytics components are located in the src/components/analytics/ directory. Once the environment variables are set, the analytics components will be automatically enabled in the production environment.
If you are setting up your environment, you can now return to the Environment Configuration document and continue. The remainder of this document can be read later.
Environment configuration set environment variables
References
-
Email Configuration - Configure email service
-
Payment Configuration - Configure Stripe payment
-
Deployment - Deploy to Cloudflare Workers
-
Affiliate Marketing - Configure affiliate marketing tracking