Home Features Pricing Documentation Services Contact DOWNLOAD
← Back to docs

Analytics: GA4 and Plausible

Connect Google Analytics 4 or Plausible to surface traffic data alongside your scan findings.

SiteCMD supports two analytics providers: Google Analytics 4 and Plausible. Connect either (or both, if you run both) to get traffic context in the Dashboard and to enable cross-source correlation when traffic moves after a deploy or a scan finding.

You don’t need analytics connected to scan. You do need it for SiteCMD to tell you “your traffic dropped 20% the day this issue first appeared.”

Google Analytics 4

GA4 connects via OAuth. You’ll grant SiteCMD read-only access to your Analytics account, and SiteCMD will read sessions, pageviews, and traffic source breakdowns.

Setup

  1. Settings → Integrations → Google Analytics, click Connect.
  2. Your browser opens the Google sign-in flow. Pick the Google account that has access to the Analytics property you want to use.
  3. Approve the read-only scopes SiteCMD requests.
  4. Back in SiteCMD, pick the GA4 property for this project from the dropdown. Most accounts have multiple; choose the one matching the URL you’re scanning.
  5. Click Save.

What it pulls

  • 30-day session and pageview totals
  • Top pages by traffic
  • Top traffic sources
  • Day-by-day series for spotting drops and spikes

GA4 data refreshes in the dashboard on demand and (on Core and above) is correlated against scan history so a traffic regression is visually tied to whatever happened in your code or live site around the same time.

What SiteCMD does not access

The OAuth scopes are read-only and narrowly scoped to Analytics. SiteCMD can’t read your Gmail, Drive, Calendar, or anything else attached to the Google account.

Disconnecting

Settings → Integrations → Google Analytics → Disconnect revokes SiteCMD’s stored OAuth token and removes the integration from this project. You can also revoke access from Google’s side at myaccount.google.com/permissions if you want a fully clean disconnect.

Plausible

Plausible connects via API key. If you self-host Plausible, the same flow works against your instance.

Setup

  1. In your Plausible dashboard, go to Account Settings → API Keys and create a new key. Name it something obvious like “SiteCMD”.
  2. Copy the key.
  3. In SiteCMD, Settings → Integrations → Plausible, click Connect.
  4. Paste the API key.
  5. Enter your site ID (the domain you registered in Plausible, e.g. example.com).
  6. If you self-host, also enter the base URL of your Plausible instance. The default is https://plausible.io.
  7. Click Save.

What it pulls

  • 30-day aggregate visitor counts
  • Top 5 pages by pageviews
  • Top 5 traffic sources
  • Day-by-day visitor series

Using both

You can connect GA4 and Plausible at the same time. The Dashboard prefers whichever one you’ve marked primary, and falls back to the other for any data the primary doesn’t return. Correlation runs against both sources.

Where the data shows up

  • Dashboard → Analytics card. Sessions, top pages, top sources, and a recent series chart.
  • Events timeline. Traffic anomalies (significant spikes or drops) appear as events in the unified project timeline, alongside scans, deploys, and uptime incidents.
  • Issues page. On Core and above, traffic regressions correlated to a scan finding appear as a single grouped issue with both signals attributed.

Privacy

Analytics requests go directly from your machine to Google or Plausible. They don’t pass through SiteCMD servers. The data we cache locally is only what’s needed for the dashboard cards and correlation; we don’t mirror your full analytics history.

Both GA4 and Plausible return aggregate metrics, not individual user data. SiteCMD doesn’t request individual user identifiers and doesn’t need them for any of the correlation work.