Skip to main content

Overview

Once Google Analytics is connected, the Dema Agent can read GA4 analytics directly inside a conversation — pull KPIs such as sessions, active users, transactions, revenue, and conversions broken down by date, channel, country, or device; analyze source/medium attribution; monitor a launch or flash sale in near real time; discover custom dimensions and metrics; and look up which properties an account can access and their configuration. The agent only acts when you ask it to.

Prerequisites

  • A GA4 property (Universal Analytics properties are not supported).
  • Administrator access on the GA4 account or property so you can grant the connecting account access.
  • Best practice: a dedicated Google “agent” account rather than a personal login.

Connect Google Analytics

1

Grant the agent account Viewer access in Google Analytics

  1. In Google Analytics (analytics.google.com) click the Admin gear.
  2. Select the correct Account and Property.
  3. In the Property column click Access Management.
  4. Click + then Add users.
  5. Enter the connecting Google account email.
  6. Choose the Viewer role (read-only) and click Add.
Optional: Property details shows the numeric Property ID — note that this is not the G- Measurement ID.
Use a dedicated agent account and grant only Viewer at the property level. This keeps access scoped to the least privilege the agent needs.
The connecting account must already have Viewer on the property before you connect, or the property will not appear in Dema.
2

Connect in Dema

In Dema, go to Agents → Settings → Integrations, find Google Analytics, and click Connect. There are no fields to enter — Dema redirects you to Google sign-in. Sign in with the account you granted access to, approve the read-only analytics.readonly access, and pick the GA4 property. Dema marks the integration as Active.

Troubleshooting

The connecting account needs at least Viewer on that property. Grant it in Access Management, then reconnect.
Make sure you selected a GA4 property (not Universal Analytics) and the correct numeric Property ID.
Reconnect from the integration card to re-authorize.
If you are still stuck, contact support with the error message you see.

Additional resources