> ## Documentation Index
> Fetch the complete documentation index at: https://docs.evevps.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-Host Enterprise Analytics with PostHog and Matomo

> Self-host PostHog or Matomo analytics on an Evevps Linux VPS to keep customer data on your own infrastructure with full compliance control.

Relying on third-party SaaS platforms like Google Analytics is becoming a legal liability for many businesses due to strict privacy laws. Furthermore, SaaS analytics often enforce expensive paywalls as your event volume scales.

By self-hosting open-source analytics platforms like PostHog or Matomo on an [Evevps Linux VPS](/linux-vps/overview), you gain 100% data sovereignty and uncapped event tracking.

## Deploying Matomo via Docker

Modern self-hosted applications are typically deployed using Docker on a headless [Linux VPS](/linux-vps/overview).

1. Order an **Ubuntu 22.04** Linux VPS (We recommend the **\[PLAN\_NAME]** plan for high event ingestion).
2. Log in via [SSH](/linux-vps/ssh-access).
3. Install Docker and Docker Compose:
   ```bash theme={null}
   sudo apt update
   sudo apt install -y docker.io docker-compose
   sudo systemctl enable docker && sudo systemctl start docker
   ```
4. Clone the official Matomo Docker repository:
   ```bash theme={null}
   git clone https://github.com/matomo-org/docker.git matomo
   cd matomo
   ```
5. Spin up the analytics stack:
   ```bash theme={null}
   docker-compose up -d
   ```

<Info>
  **Data Sovereignty:** Because your data is stored on your Evevps server's pure SSD storage, it never passes through third-party tracking servers. You own the database entirely, drastically simplifying your compliance with GDPR and CCPA.
</Info>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.