Connect Google Analytics 4 to Rig

    Add one email address as a viewer on your GA4 property and paste the property ID into Rig. Traffic acquisition, ecommerce purchases, landing pages and device and country reporting then land in your warehouse, where you can join them to orders, spend and CRM data.

    Requirements
    Admin access to your GA4 property, plus its property ID
    Time required
    5 mins

    How the connection works

    Rig provisions a service account for your workspace: a Google identity owned by Rig that exists only to read your data. You add its email to your GA4 property as a Viewer, the same way you would add an analyst.

    Sharing in this way avoids the OAuth consent screen and Google's app verification queue entirely, and it leaves the permission visible in your own property, where you can revoke it without involving Rig. The service account's key is held by Rig and never leaves it, so there is nothing for you to download or paste.

    Before you start

    • Administrator access to the GA4 property, enough to reach Admin → Property access management.
    • The property ID, a number such as 283481234. Find it at Admin → Property Settings. This is not the same as the measurement ID that starts G-, which will not work here.
    • A GA4 property rather than a Universal Analytics one. Universal Analytics stopped processing data in 2023 and its API is not supported.

    Generate your Rig service account

    The service account is generated once for your whole workspace. If you have already generated one for another Google source, reuse that same email address and skip to the next section.

    Adding a source needs a workspace owner, or a role with the Manage connections permission, on a workspace where you manage your own connections. If the Connectors tab says “Data ingestion for this workspace is managed by Rig”, ask an owner or Rig support to add the source.

    1. In Rig, open Connections, choose the Connectors tab and go to Sources & actions.
    2. In the Google service account card at the top of the page, click Generate service account.
    3. Copy the email address Rig gives you. It ends in .iam.gserviceaccount.com.

    Add Rig as a viewer

    1. In GA4, go to Admin → Property → Property access management and click +.
    2. Paste the service-account email and give it the Viewer role. Viewer is all Rig needs, and it cannot change anything in your property.
    3. Add the user. The grant takes effect immediately.

    Grant it on the property
    GA4 has access management at both the account and the property level. Adding Rig at the account level does not always cascade the way people expect, so add it on the specific property whose ID you are about to paste into Rig.

    Connect it in Rig

    1. In Rig, open Connections, choose the Connectors tab and go to Sources & actions.
    2. Search for Google Analytics 4, open the card and click Connect. It opens on the Share to Rig (no OAuth) tab, which uses the service account.
    3. GA4 Property ID: paste the numeric ID from Property Settings.
    4. History start date: optional. Leave it blank for the default first sync described below, or enter a date as YYYY-MM-DD to backfill to.
    5. Lookback days: optional. Left blank, every sync re-pulls the last 7 days. Any whole number from 1 to 365 works.
    6. Click I've shared it — check & connect. Rig checks that the service account can see the property and connects the source.
    7. The source then syncs on its schedule, which is nightly unless you change it. To load data straight away, click Sync on its row; Test pulls a small sample first if you want to check the connection.

    Connect one source per property. If you run several properties, add each as its own source so they land in separate datasets and stay comparable. From the second one on, the form has a required Account label field at the top: give each connection a short name, such as the property or the market, so each stays its own source.

    What Rig pulls in

    GA4 lands in its own google_analytics_4 schema. Rig pulls seven daily reports, six of them by default, chosen to cover the questions people actually ask of GA4 once it sits beside their order and spend data:

    • Traffic acquisition: sessions, users, new users, engaged sessions and bounce rate, broken down by default channel group, source, medium, campaign, term and ad content
    • Ecommerce purchases: transactions, purchase revenue, average purchase revenue, add to carts and checkouts by channel group
    • Sessions by landing page: sessions, engaged sessions and conversions per landing page
    • Device and country: sessions, users and transactions by device category and country
    • Ecommerce by country: sessions, add to carts, checkouts and transactions by country
    • Items by country: items viewed, added to cart, checked out and purchased, and item revenue, per product and country
    • Pages by country: page views, active users, engagement time and event count per page path and country. This one is off by default because it is large. To add it, click the filter icon on the source's row, whose tooltip reads “Edit which streams sync”, and tick pages_by_country.

    These are aggregate reports rather than raw event rows. If you need event-level GA4 data, that comes from GA4's own BigQuery export, and Rig can read that warehouse directly.

    How much history you get

    The first sync pulls 90 days, then keeps up incrementally from there. That is a deliberate default rather than a limit of your data.

    GA4 meters API use with an hourly, property-level cost quota, and it is easier to exhaust than it looks. Simply asking GA4 how far back a property's data goes was expensive enough on its own to burn the whole hourly quota in a single call, before a single row of real data had landed. Starting at 90 days means your first sync completes.

    If you need a deeper backfill, set History start date to the earliest day you want, either when you connect or later with the pencil icon on the source's row. Rig backfills to it in 90-day windows and saves its progress after each one, so a backfill that runs into the quota carries on at the next sync, without disturbing the rows already loaded or the normal daily sync. Two hard limits apply whatever you set: GA4's API will not return data before 2015-08-14, and your property only has data from the day it started collecting.

    Recent days are still settling
    GA4 takes 24 to 48 hours to finish processing, and late data can arrive for up to seven days, so every sync re-pulls the last 7 days and replaces them. Expect very recent numbers to move slightly. Lookback days changes the window, from 1 to 365 days, and a longer one uses more of the API quota.

    Troubleshooting

    • Permission denied: the service account is not on that property. Check Property access management on the exact property whose ID you entered.
    • The property ID is rejected: you probably pasted the measurement ID. Rig wants the numeric property ID from Property Settings.
    • The sync stops partway with a quota error: GA4's hourly cost quota is shared across everything querying that property, including other tools and anyone using the Explore reports heavily. It resets on the hour, and Rig picks up where it stopped.
    • Numbers do not match the GA4 UI exactly: check whether the range includes the last seven days, and whether the UI report you are comparing against applies its own sampling or thresholding. Rig stores what the API returns.

    What people use this for

    • Compare conversion and revenue by channel
    • Find the landing pages that convert
    • Break ecommerce down by country, product and device

    More ideas for using Google Analytics 4

    Was this guide helpful?