> Source: https://meetrix.io/blogs/umami-google-analytics-alternative-gcp/
> Markdown copy of that page. Cite the URL above, not this file.

Development

# Umami on GCP: A Self-Hosted Google Analytics Alternative

[By Shalomi Umeshika](https://meetrix.io/blogs/authors/shalomi-umeshika/) • November 17, 2026 • 10 min read

Most websites don't actually need everything Google Analytics offers. It's free and powerful, sure, but the reality is that most of us look at a short list: which pages people read, where they came from, which campaign worked, and whether anyone clicked the signup button. For that, Google Analytics brings cookies (and often a consent banner), a reporting interface that can feel like solving a puzzle, and visitor data that lives in Google's cloud.

**Umami** is the open-source alternative that answers those same questions on a single screen. It sets no cookies, and it runs inside your own Google Cloud project. Meetrix's Marketplace image gets you up and running with PostgreSQL, Nginx, and Let's Encrypt SSL on Ubuntu 26.04, all from one form. Below, I'll walk through the deployment, how Umami compares to Google Analytics, and when switching actually makes sense. You can [launch the Meetrix Umami image on Google Cloud Marketplace](https://console.cloud.google.com/marketplace/product/meetrix-public/umami).

The Quick Verdict

Switch to Umami

You want clear traffic numbers, not a data platform

Pages, sources, campaigns, and events on one dashboard, without the Google Analytics learning curve.

Switch to Umami

Visitor data must stay with you

Every event lives in a PostgreSQL database in your own GCP project, for as long as you keep it.

Stay on Google Analytics

Your marketing runs on Google Ads

Audiences, conversion imports, and ad-platform links are what Google Analytics is built for. Umami doesn't try to replace them.

Run both for a month

You're not sure yet

Add the Umami script beside your Google Analytics tag, compare the numbers, then decide.

## What is Umami?

[Umami](https://umami.is/) is an open-source web analytics platform released under the MIT licence. You drop one small script onto your site, and it records visits without cookies and without storing anything that identifies a person. The source and release notes live on [GitHub](https://github.com/umami-software/umami/releases), and the 3.x line has been moving quickly: annotations and MCP support landed in 3.4.0, and 3.5.0 brought browser error tracking in November 2026.

### What it does

Traffic

-   Page views, visitors, bounce rate, and visit duration on one dashboard
-   A realtime view of who's on the site right now
-   Any two date ranges side by side, filtered by country, device, or page

Sources and campaigns

-   Referrers and channels, picked up automatically
-   UTM parameters, so a newsletter link and a paid ad show up as separate sources

Events and reports

-   Custom events for clicks, signups, downloads, and form submissions
-   Funnel, retention, user journey, and goal reports
-   Session replay and heatmaps (both arrived in the 3.x releases)

Team and access

-   Unlimited websites and team members when you self-host
-   Public share links: a read-only dashboard anyone can open without an account
-   A REST API, typed API client, and two-factor sign-in (now mandatory in v3.5.0)

## Umami vs Google Analytics

The two tools answer different questions. Google Analytics is built to feed an advertising stack. Umami is built to tell you what happened on your site, and stop there.

|  | Umami on GCP by Meetrix | Google Analytics |
| --- | --- | --- |
| Licence | MIT, open source | Proprietary |
| Pricing | Free software; you pay the Marketplace licence fee and Google Cloud infrastructure | Free, with a paid Analytics 360 tier |
| Cookies | None | First-party `_ga` cookies, 2 years by default |
| Event data retention | As long as you keep it | 2 or 14 months on standard properties; up to 50 months on 360 |
| Where data lives | Your own GCP project, in the zone you pick | Google's cloud |
| Ad-platform integrations | None | Google Ads, audiences, conversion imports |
| Learning curve | One dashboard per site | Reports, explorations and a custom event model to learn |

The retention row is the one people miss. A standard Google Analytics property keeps event-level data for 2 or 14 months. That's fine until someone asks how this November compared with the one two years ago. In Umami, history stays as long as your database does. The retention figures come from [Google's own Analytics developer documentation](https://developers.google.com/analytics).

**Running both is a normal first step.** The Umami script is small and doesn't touch your Google Analytics tag. A month side by side tells you whether anyone actually needs the reports Umami doesn't have.

## Who Umami on GCP suits

A good fit if you are

-   A team already on Google Cloud that wants analytics billed and hosted in the same place
-   An agency running several client sites, giving each client a share link instead of a login
-   Bound by privacy rules that make cookie banners or Google-hosted visitor data a problem
-   A developer who wants a REST API over their own analytics database

Look elsewhere if you need

-   Google Ads audiences, remarketing, and conversion imports
-   Scheduled email reports, which are an Umami Cloud feature (available on Business and Enterprise plans)
-   A fully managed service with no server at all

## Why run Umami on Google Cloud?

You could run the Docker image anywhere. The Marketplace image exists for the parts around it that are easy to postpone and painful to skip.

One form, everything set up

The deployment form creates the VM in the zone and network you choose, with Umami and PostgreSQL running behind an Nginx reverse proxy on Ubuntu 26.04.

SSL without the fiddling

Give the form a domain and an admin email, and the image tries to issue a Let's Encrypt certificate for you. If DNS isn't ready yet, one script on the server does it later.

No default password

A plain Docker install starts with Umami's well-known `admin` / `umami` login. The image uses the admin password you set in the form instead. And with v3.5.0, Umami now forces you to change the seeded admin password before you can continue, so even a manual install is safer than it used to be.

Try it before you pay

The listing includes a 5-day free trial with up to USD 50 in licence fee credits. Google Cloud charges for the VM still apply.

## Deploy Umami on GCP in five steps

1.  Open the Marketplace listingGo to [Umami on Google Cloud Marketplace](https://console.cloud.google.com/marketplace/product/meetrix-public/umami) and click Launch.
2.  Fill in the deployment formUse the table below. A service account with the right roles is created for you if you don't pick one.
3.  Deploy and waitWhen the deployment finishes, open the VM instance and copy its external IP from the Network interfaces section.
4.  Point your domainCreate a DNS A record for your domain pointing at that IP. Reserve the IP as static first (see below).
5.  Sign inOpen your domain in a browser. The username is `admin` and the password is the one you set in the form.

### Deployment form fields

| Field | What to enter |
| --- | --- |
| Deployment name | A label, useful if you run more than one |
| Deployment service account | An existing account with `roles/config.agent`, `roles/compute.admin` and `roles/iam.serviceAccountUser`, or let the form create one |
| Zone | Where the VM and your analytics data will live |
| Machine type | `e2-small` (2 vCPU, 2 GB) by default; go larger for several busy sites |
| Network and subnetwork | `default` unless you have your own VPC |
| External IP | Ephemeral by default |
| Allow SSH | Enabled by default; restrict the source range to your own IP |
| Domain name | The domain for the dashboard, e.g. `analytics.yourcompany.com` |
| Admin email and password | The email is used for the SSL certificate; the password is for the Umami `admin` account |

The [Umami GCP developer guide](https://meetrix.io/blogs/umami-gcp-developer-guide/) walks through every field with screenshots, plus logs and troubleshooting.

Make the external IP static before you set DNS

The form gives the VM an ephemeral external IP by default, and Google Cloud can release an ephemeral address when the VM stops. Promote it to a static address in VPC network settings before you create the DNS record, or your dashboard and tracking script will stop resolving after the next restart.

### If SSL doesn't set itself up

This happens when DNS wasn't pointing at the server when it first booted. Point the record, wait until it resolves, then SSH in and run the certificate script:

```bash
sudo bash /root/certificate_generate_standalone.sh
```

### Seeing a 502 Bad Gateway?

Umami can take a few minutes to start after the VM boots. Wait 5 to 10 minutes and refresh before you start debugging. If it persists, check the containers and Nginx:

```bash
sudo docker ps
sudo docker logs <container-id-prefix>
sudo systemctl status nginx
```

## Add your first website

1.  Add the websiteOn the Websites page, click _Add website_, enter a name and the site's domain, and save.
2.  Copy the tracking codeOpen the website's settings, copy the snippet from _Tracking code_, and paste it into the `<head>` of every page you want to track. It can sit beside your Google Analytics tag.
3.  Check it worksVisit your site once. The visit shows on the dashboard within a few seconds. If it doesn't, test from a browser without an ad blocker.

```html
<script defer src="https://analytics.yourcompany.com/script.js" data-website-id="your-website-id"></script>
```

To count a button click as an event, add a `data-umami-event` attribute, no extra JavaScript needed. The official docs on [tracking events](https://docs.umami.is/docs/track-events) cover event properties and the `umami.track()` call.

```html
<button data-umami-event="Signup button">Sign up</button>
```

Load the script over https

If you add the tracking code before SSL is in place, it points at an http URL. Browsers quietly block an http script on an https page, so update the snippet once the certificate is issued.

## Running Umami safely

Server

-   SSH is allowed by default. Restrict the source range to your own IP rather than `0.0.0.0/0`.
-   The dashboard sits behind Nginx with a Let's Encrypt certificate once your domain points at it.
-   If the boot disk fills up, check with `df -h` and resize the disk before the database stops writing.

Accounts

-   The `admin` account can see and change every website. Keep it to one or two people.
-   Give everyone else their own user. Two-factor sign-in is now mandatory on the server as of v3.5.0, so new users will be prompted to enroll.
-   Share links are read-only, but anyone with the link can view them, so revoke old ones.

### Backups and upgrades

Every website, user, and event you've recorded is in one PostgreSQL database on the VM, so plan its backup the day you launch. On Google Cloud the simplest safety net is a snapshot schedule on the VM's boot disk, which keeps point-in-time copies without touching the app. Upgrades work the same way as on any Marketplace image: back up the database, delete the deployment, and deploy the newer version.

**If you only do one thing after launch, set up the backup.** Analytics history is the one thing you can't get back by redeploying.

## Marketplace image, Docker, or Umami Cloud?

Recommended

Meetrix image on GCP Marketplace

Best for teams already on Google Cloud

PostgreSQL, Nginx, SSL and your own admin password set up from one form, billed through your Google Cloud account. Supported by Meetrix.

Docker Compose

Best for a laptop or your own server

The [official install guide](https://docs.umami.is/docs/install) starts Umami and PostgreSQL on port 3000. The proxy, SSL, backups and the default password are yours to handle.

Umami Cloud

Best for one small site

Sign up and paste the script. The Hobby plan is free forever, capped at 100K events per month, one website, and 6-month data retention. Our [Umami on AWS article](https://meetrix.io/blogs/umami-aws-marketplace/) compares the Cloud plans in detail.

## Resources

[

Umami on GCP - Developer Guide

Step-by-step deployment on Google Cloud: launching the Marketplace image, filling in the deployment form, pointing DNS, adding your first website, generating SSL, and checking logs and upgrades.

Meetrix.IO | Binuka Ranatunga

![Umami on GCP Developer Guide cover](https://meetrix.io/blog-images/paas-dev-guides/umami-gcp/umami-gcp-image.png)](https://meetrix.io/blogs/umami-gcp-developer-guide/)

## Is Umami on GCP worth it?

If you use a handful of Google Analytics reports and spend more time on the consent banner than in the dashboards, yes. You get the numbers you actually look at, no cookies, history for as long as you keep it, and the data in your own Google Cloud project. The Marketplace image handles the setup that usually stops people: the database, the proxy, and the certificate.

It's the wrong move if your marketing depends on Google Ads audiences and conversion data flowing back from Google Analytics. In that case, run Umami beside it for the simple reporting, or stay where you are.

Running on AWS instead? The same image is on AWS Marketplace, covered in our [Umami on AWS article](https://meetrix.io/blogs/umami-aws-marketplace/). Specs and launch options for both clouds are on the [Umami store page](https://meetrix.io/store/umami/).

## Frequently Asked Questions

Is Umami a good Google Analytics alternative?

Yes, if you mainly need traffic numbers, sources, and simple events. It's cookie-free and self-hosted, so you keep full control of your data. It won't replace Google Ads audiences or conversion imports, though.

How do I deploy Umami on Google Cloud?

Use the Meetrix Marketplace image. Fill in the deployment form, wait for the VM to boot, point your domain, and sign in. The [developer guide](/blogs/umami-gcp-developer-guide/) walks through every step.

What machine type does Umami need on GCP?

The default is e2-small (2 vCPU, 2 GB). Go larger if you're tracking several busy sites. Umami itself is lightweight: most self-hosting guides suggest 1-2 GB of RAM is enough for a small setup.

Is there a free trial?

Yes, the listing includes a 5-day free trial with up to USD 50 in licence fee credits. Google Cloud infrastructure charges still apply.

What are the login details?

The username is always admin. The password is whatever you set in the deployment form. As of v3.5.0, you'll be required to change the seeded password if you're doing a manual install.

Does Umami need a cookie banner?

No. Umami doesn't use cookies and doesn't store personally identifiable information, so it's GDPR and CCPA compliant out of the box. No consent banner required.

How do I upgrade Umami on GCP?

Back up your database, delete the deployment, and deploy the newer Marketplace image. Then restore your data. Note that v3.5.0 requires Node.js 20.19+ and explicitly sets APP\_SECRET.

Where do I get help?

Check the Meetrix [developer guide](/blogs/umami-gcp-developer-guide/) first. For issues with the image itself, reach out to Meetrix support. For Umami-specific questions, the GitHub discussions and documentation are your best bet.

## Ready to own your analytics?

Deploy Umami on Google Cloud from one form, with PostgreSQL, Nginx and SSL set up for you. Your visitors, your numbers, your project.

[Get Started on GCP Marketplace](https://console.cloud.google.com/marketplace/product/meetrix-public/umami)

Meetrix Store

Umami

Cookie-free web analytics, a Google Analytics alternative

[Deploy it](https://meetrix.io/store/umami/)

Meetrix Store New

Deploy what this guide covers, pre-configured.

-    [Umami Cookie-free web analytics, a Google Analytics alternative](https://meetrix.io/store/umami/)
-    [Ghost Blogs and paid memberships, no revenue cut](https://meetrix.io/store/ghost/)
-    [changedetection.io Website change alerts, a Visualping alternative](https://meetrix.io/store/changedetection/)
-    [Jitsi Meet Self-hosted video calls for 50 to 500 users](https://meetrix.io/store/jitsi-meet/)
-    [RustDesk Remote desktop AMI, a TeamViewer alternative](https://meetrix.io/store/rustdesk/)
-    [Coturn TURN/STUN for WebRTC, no per-minute relay fees](https://meetrix.io/store/coturn/)

[Browse all products](https://meetrix.io/store/)
