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

# Self-Host Enterprise Analytics (PostHog & Matomo)

> Self-host PostHog or Matomo analytics on a FlashRDP 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 a [FlashRDP Linux VPS](https://flashrdp.com/linux-vps?utm_source=docs\&utm_medium=guide\&utm_campaign=self_hosted_analytics), 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](/docs/linux-vps/overview).

1. Order an **Ubuntu 22.04** Linux VPS (We recommend the **Gold** plan for high event ingestion).
2. Log in via [SSH](/docs/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 FlashRDP server's pure NVMe storage, it never passes through third-party tracking servers. You own the database entirely, drastically simplifying your compliance with GDPR and CCPA.
</Info>
