Integrations

Connecting Google Analytics 4

Overview

The Google Analytics 4 (GA4) integration gives invisor access to your website's traffic and behaviour data. Combined with your ad channel data, this lets you understand the full customer journey — from ad impression to on-site conversion.

What data is synced

  • Sessions – total and by source / medium / channel
  • Pageviews and screen views
  • Events – all GA4 events including purchases, add-to-cart, and custom events
  • Traffic sources – organic, paid, email, direct, referral
  • Device breakdown – desktop, mobile, tablet
  • Channel grouping – default and custom channel groups
  • Page-level metrics – top pages by sessions and engagement

Before you begin

You'll need:

  • A GA4 property (Universal Analytics is not supported)
  • Access to the Google Cloud Console
  • Editor or Admin access to the GA4 property

Step 1 – Create a Google Cloud service account

If you already created a service account for Google Ads, you can reuse the same one. Otherwise:

  1. Open Google Cloud Console.
  2. Go to IAM & Admin → Service Accounts → Create Service Account.
  3. Name it (e.g. invisor-ga4), click Create and continue, then Done.
  4. Under the Keys tab, click Add Key → Create new key (JSON) and download it.

Step 2 – Enable the GA4 Data API

  1. In Google Cloud Console, go to APIs & Services → Library.
  2. Search for Google Analytics Data API and click Enable.

Step 3 – Add the service account to GA4

  1. Go to Google Analytics and open your GA4 property.
  2. Click the Admin gear icon (bottom-left).
  3. Under Property, click Property Access Management.
  4. Click + and enter the service account email address.
  5. Set the role to Viewer and click Add.

Step 4 – Connect in invisor

  1. Go to Settings → Channels in invisor.
  2. Click Connect on the Google Analytics card.
  3. Enter your GA4 Property ID (found in GA4 under Admin → Property Settings, e.g. 123456789).
  4. Upload the JSON key file.
  5. Click Connect.

Linking GA4 with Google Ads

For the best cross-channel view, link your GA4 property to Google Ads inside Google Analytics (Admin → Google Ads Links). This enriches both the GA4 and Google Ads data with shared conversion and session context.

Troubleshooting

No data after connecting

Confirm the GA4 Data API is enabled in Google Cloud Console and that the service account has Viewer access to the correct GA4 property (not a Universal Analytics property).

Sessions look lower than expected

GA4 uses an event-based model and counts sessions differently from Universal Analytics. A session in GA4 starts with a session_start event and is based on engagement rather than 30-minute timeouts.

I see the property ID but no data

Make sure you're using the GA4 Property ID (numeric, e.g. 123456789) and not the Measurement ID (which starts with G-).

Google Analytics 4 integration connection flow in invisor
Connect your GA4 property to invisor using a Google Cloud service account.
ga4-service-account-example.sh
# Example: store your GA4 service account key securely
export GA4_SERVICE_ACCOUNT_KEY_PATH="/path/to/invisor-ga4-key.json"