LogoShipSaaS

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:

VariableDescription
VITE_GOOGLE_ANALYTICS_IDGoogle Analytics tracking ID
VITE_UMAMI_WEBSITE_IDUmami Analytics website ID
VITE_UMAMI_SCRIPTUmami Analytics script URL
VITE_PLAUSIBLE_SCRIPTPlausible Analytics script URL
VITE_CLARITY_PROJECT_IDMicrosoft 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

On this page