Skip to content
For Magento, Shopify and WooCommerce stores, with Google Analytics and Meta AdsSee the use cases
Start here

Connect Google Analytics 4

Link your GA4 property so traffic, channels and the shopping funnel sit next to your sales.

In the app: Connected Stores → your store → Integrations

Open your dashboard

What you need

Insights reads GA4 through Google’s Analytics Data API, using OAuth credentials you create in Google Cloud. You need four values: the GA4 Property ID, an OAuth Client ID, an OAuth Client Secret and a Refresh Token.

The Property ID is a number, such as 123456789. In GA4, open Admin and look under Property details. It isn’t the Measurement ID that starts with G-.

The Google account you sign in with must have at least Viewer access to that property.

Create the OAuth credentials

Set the app to In production before you create the refresh token. While a Google Cloud app is in Testing, Google expires its refresh tokens after 7 days and the import stops.

Google may show a “Google hasn’t verified this app” notice when you sign in. For an app you created yourself, choose Advanced and continue.

  1. In Google Cloud Console, create or choose a project and enable the Google Analytics Data API.
  2. Set up the OAuth consent screen (Google Auth Platform → Audience in newer consoles) and set the publishing status to In production.
  3. Under Credentials, create an OAuth client ID of type Web application, with https://developers.google.com/oauthplayground as an authorized redirect URI.
  4. In the OAuth 2.0 Playground, open the settings, tick Use your own OAuth credentials and enter your client ID and secret.
  5. Authorize the scope https://www.googleapis.com/auth/analytics.readonly, choose Exchange authorization code for tokens, and copy the refresh token.

Connect it in Insights

Save & Test Connection checks the values with Google. The card then shows Connected, or Connection failed with the reason in plain words. Every import checks again, so a refresh token that stops working later also shows as Connection failed.

To change a value, press Edit, fill in only the fields you want to change and press Save & Test Again. Empty fields keep their saved values. Test checks the saved values again without changing them.

  1. Open your store, then Integrations under Tools.
  2. On the Google Analytics 4 card, press Connect.
  3. Fill in GA4 Property ID, OAuth Client ID, OAuth Client Secret and Refresh Token.
  4. Press Save & Test Connection. The card shows Connected. If it shows Connection failed, fix the value the message names and press Save & Test Again.
  5. Press Sync to run the first import, then check that Last synced appears on the card.

What gets imported, and how often

Daily figures by source, medium, campaign and channel: sessions, users, new users, page views, bounce rate, average session duration, purchases and purchase revenue. Also page performance, device and browser, country and city, the shopping funnel (items viewed, added to cart, checked out, purchased) and site search terms.

Imports run every 6 hours. Each one re-reads the last 7 complete days, up to yesterday, so GA4’s late corrections are picked up. Today’s traffic appears tomorrow.

History starts with the week before you connect and builds from there. If you need older months, contact support.

Your role decides which pages and actions you can use. If something described here is missing, ask the person who manages your team to change your access.
Back to the help centerConnect Meta Ads
Connect Google Analytics 4 · ignitix insights