Skip to main content

Import from Google Analytics 4 / Firebase

Connect Google Analytics 4 or Firebase Analytics to Digia Engage and import a GA4 audience you can target.

This guide gives Digia Engage read access to your Google Analytics 4 property and imports a GA4 audience. It works the same for Firebase Analytics, because Firebase stores its analytics in a GA4 property. No API key is needed: you add Digia's service account as a viewer.

By the end, you should have:

  • GA4 / Firebase connected under Data → Connectors
  • a GA4 audience imported as a Digia audience, refreshed once a day

Before you start​

Make sure you have:

  • Audiences enabled for your Digia Engage project (see Before you start).
  • Administrator access to the GA4 property, so you can add a user.
  • At least one audience in GA4.
  • User-ID set in GA4. Your app must send GA4 (or Firebase) the same user ID it passes to Digia's setUserId. Digia imports people by GA4's User-ID, and people without one can't be imported. Ask your developers if you're not sure.
info

GA4 imports audiences only. It doesn't import user properties, and the match field can't be changed.

Step 1: Start the connection in Digia​

  1. Open Data → Connectors.
  2. On the Google Analytics 4 / Firebase card, click + Connect.
  3. Copy the Digia service account email with the Copy button.
Connect Google Analytics 4 / Firebase dialog with the Digia service account email and Property ID field
Copy the Digia service account email shown in your dialog. You'll add it to Google Analytics next.

Keep this dialog open.

Step 2: Give Digia access in Google Analytics​

  1. Open your property in Google Analytics. Coming from Firebase? Go to Project settings → Integrations → Google Analytics → Manage.
  2. Go to Admin → Property access management.
  3. Add the service account email as a user with the Viewer role.
Screenshot coming soon

Google Analytics: adding the Digia service account as a Viewer under Property access management. Until then, see Google's guide to adding users.

Step 3: Find your Property ID​

In Google Analytics, open Admin → Property details and copy the Property ID. It is a number, such as 314159265.

Screenshot coming soon

Google Analytics: the Property ID on Property details. Until then, see Google's guide to finding your Property ID.

warning

Use the numeric Property ID. A Firebase project ID or a G- measurement ID won't work.

Step 4: Connect​

Back in Digia, paste the Property ID and click Connect. Digia checks it can read the property, then shows GA4 / Firebase connected. Select an audience to import.

Step 5: Choose an audience​

Pick the GA4 audience you want and click Import "{name}".

Screenshot coming soon

Digia: the Choose an audience step listing GA4 audiences.

GA4 doesn't share audience sizes, so Digia counts people after the first import.

tip

Seeing No audiences found in this GA4 property? Create one in Google Analytics under Admin → Audiences first.

Step 6: Check the audience​

Open Data → Audiences. The first sync asks GA4 to export the audience, which can take several minutes. Then the row shows its size and match rate.

Screenshot coming soon

Digia: a GA4 audience expanded on the Audiences tab.

Digia refreshes GA4 audiences once a day. Click Sync now to refresh sooner.

Now use the audience in a campaign.

Troubleshooting​

MessageWhat to do
No access to GA4 property {id}Add the Digia service account as a Viewer under Admin → Property access management.
GA4 property {id} was not foundUse the numeric Property ID from Admin → Property details.
The GA4 property id is the number under Admin, Property detailsThe value isn't a property ID. Remove letters or the G- prefix.
No users matched (check User-ID)GA4's User-ID isn't the same ID your app passes to Digia.setUserId. Ask your developers to send the same ID to both.
GA4 quota reached for property {id}GA4 limits API use per property. Digia retries later.
Timed out waiting for GA4 audience export after 15 minutesGA4 was slow to export. Click Sync now later.
GA4 import is not set up on Digia's side yetContact Digia support.