For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to set up the Google Analytics integration

Connect Google Analytics so your web traffic data flows into journey map metric cards.

An Admin connects Google Analytics once at the account level. After that, anyone in the workspace can build metrics from your GA properties.

Set up the Google Analytics integration

Prerequisites

In Smaply, go to Account Settings > Integrations and click Set up next to Google Analytics.

Smaply Account settings page with the Integrations tab open. The Metrics integrations section lists Google Analytics, Office 365 Excel, Power BI, Google Sheets, and Qualtrics, each with a Set up button to the right.
Account settings > Integrations

The Configure Google Analytics page opens with two options under Select integration type: Service account (selected by default and marked Recommended) and Login with your Google account (oAuth).

Configure Google Analytics page in the unconfigured state. The left pane shows Select integration type with Service account selected (marked Recommended) and Login with your Google account (oAuth) below it. The right pane shows Configure service account with a Service account file label, the instruction Upload your Google Analytics service account JSON file, a No file uploaded yet empty state, and an Upload File button.
Configure Google Analytics, unconfigured

Pick the authentication method that fits:

  • Service account (recommended) - Server-to-server, so the connection isn't tied to one person's login. Best when your team works on the same Smaply account.

  • OAuth - Signs Smaply in as you. Simpler when only one person needs the data.


Configure Google Analytics in Smaply

Once the connection is established, the Configure Google Analytics page lists the GA properties it can read under Select properties & apps. For each property you pick which dimensions and metrics to expose, which shapes the choices Editors see when they build a metric.

Connected Configure Google Analytics page. The Select properties & apps section lists a connected property with a green check, a Configure button, and a delete icon, plus an Add property link below it.
Configure Google Analytics, connected
1

Add the properties you want

Each connected property appears with a green check. Click Add property to include another property the connection can read. You can come back and add more at any time.

2

Pick the dimensions to expose

Click Configure next to a property to open the Configure Google Analytics property dialog, then open the Dimensions tab. Tick the dimensions Editors should be able to group data by (for example, Country, Device model, Page title). Use the search box or category filters to find them. Selected dimensions collect in the Selected panel on the right.

Configure Google Analytics property dialog on the Dimensions tab. A searchable, category-filtered list of GA dimensions sits on the left, each with a checkbox and description, and a Selected panel on the right lists the chosen dimensions such as Country, Device model, and Page title.
Configure Google Analytics property, Dimensions tab
lightbulb

Tip: Keep it lean

3

Pick the metrics to expose

Switch to the Metrics tab and tick the metrics to make available (for example, Active users, Sessions, Bounce rate, Total revenue). Editors can then build metrics from any combination of the dimensions and metrics you enable here.

Configure Google Analytics property dialog on the Metrics tab. A searchable, category-filtered list of GA metrics sits on the left, and the Selected panel on the right lists chosen metrics such as Active users, Bounce rate, Sessions, and Total revenue.
Configure Google Analytics property, Metrics tab
4

Apply your selections

Click Close at the bottom of the dialog. Smaply applies your selections immediately, so any new metric using this property sees the dimensions and metrics you enabled. Repeat for each property you want to make available.


Verify the setup

Open the Configure Google Analytics page. If your GA properties appear under Select properties & apps, the connection is working. If the list is empty or any check fails, see Troubleshooting below.


Use Google Analytics in a metric

With the connection verified, anyone in your account with an Editor role can add Google Analytics data to a metric card on any journey map. See How to use Google Analytics in a metric for the field mapping, and How to create and configure a metric for the full metric flow, including types, charts, and filters.

lightbulb

Tip: Match the GA dimension to the journey stage

Google Analytics metrics refresh on an hourly cycle, in line with all Smaply metric integrations. There's no continuous or streaming pull.


Troubleshooting

The Integrations tab in Account Settings shows the integration's current state. Pick the symptom below that matches what you're seeing.

Connection Failed or Connection Error banner - Connection issue

A red banner on the Configure Google Analytics page means Smaply cannot reach GA with the stored credentials.

  • For service account: confirm the Google Analytics Data API and Google Analytics Admin API are both enabled in the Google Cloud project. Check that the service account email is still listed under Property Access Management in GA with at least Viewer access.

  • For OAuth: click Connect Google Analytics again from the Configure page. The token may have expired or been revoked.

The Select properties list is empty - Properties issue

The connection succeeds but no properties appear.

  • For service account: the service account email hasn't been added to any GA property, or the Google Analytics Admin API isn't enabled. Open each GA property's Admin > Property Access Management, add the service account email with Viewer access, and confirm the Admin API is on.

  • For OAuth: the Google account you signed in with doesn't have access to any GA4 property. Sign in with an account that does, or have the GA owner grant access first.

Smaply finds properties but can't read data - Permissions issue
  • Check the role granted to the service account or user in Property Access Management. Viewer is the minimum. (Older Google Analytics phrases this permission as "Read & Analyze".)

  • Confirm the connection points at the GA4 property you expect. Smaply reads through the GA4 Data API.

Can't create a JSON key in Google Cloud - Org policy issue

The Add key option is disabled, or key creation fails outright.

  • Some Google Cloud organisations block service-account key creation through an org policy. Work with your Google Cloud admin to allow key creation for the project, or use the OAuth method instead.

Token expired and metrics stopped pulling - OAuth issue

Metrics that worked previously have stopped pulling data and the OAuth connection shows an error.

  • Open the Configure Google Analytics page and click Connect Google Analytics to refresh the token.

  • If you regularly hit token expiry, consider switching to a service account. Switching disconnects the current connection, so existing metrics stop pulling until you reconnect.

A metric returns no data or unexpected values - Data issue
  • Verify the Date range in the metric covers a window where the GA property actually has data.

  • Check Include filters and Exclude filters for conditions that may be filtering everything out.

  • Confirm the dimension and metric combination is supported in GA itself. Some GA dimensions can't be combined with some metrics; if GA's own Explore view returns nothing, Smaply will too.

For wider questions about how integrations behave across tools (refresh frequency, switching auth, what happens on disconnect), see How to manage integrations.

Still not working? Contact support at help@smaply.com


Last updated