Connecting Google Analytics (GA4) to projects
In this article (9)
- Quick setup overview
- Step 1: Find your GA4 property ID
- Step 2: Create a service account in Google Cloud
- Step 3: Generate your JSON key
- Step 4: Add the service account to your GA4 property
- Step 5: Enable the Google Analytics Data API
- Step 6: Connect GA4 in Slickplan
- Troubleshooting & common issues
- If you already created a service account
Connecting Google Analytics (GA4) to your Slickplan project helps you understand which pages users value most, where they’re coming from, and how they move through your site. These insights help you optimize your content pathways and improve your website structure.
Because of Google’s limits on shared service accounts, each workspace now needs to set up its own GA4 service account. This guide walks you through the entire process from start to finish.
It takes about 5 – 10 minutes and requires only basic web skills (clicking buttons, copying/pasting values).
Quick setup overview
Here’s what you’ll complete:
- Find your GA4 Property ID in Google Analytics
- Create a service account in Google Cloud
- Generate a JSON key
- Grant that service account access to GA4
- Enable the Google Analytics Data API
- Paste the Property ID + JSON into Slickplan and connect
Troubleshooting and common errors are included at the end.
Step 1: Find your GA4 property ID
- Sign in at analytics.google.com.
- Click Admin (bottom-left).
- Under Property, choose your GA4 property.
- Click Property details.
- Your Property ID appears in the top-right of the panel.
- Example:
314011272
- Example:
Copy this number – you’ll need it soon.
Step 2: Create a service account in Google Cloud
- Go to https://console.cloud.google.com
- At the top, click Select a project.
- Click New Project → name it something recognizable, like:
SP Analytics Integration - Click Create and wait a few seconds.
- Once created, open the project and go to:
IAM & Admin → Service Accounts - Click + Create service account.
- Enter:
- Name:
ga4-api-access - Description: Service account for GA4 access
- Name:
- Click Create and continue.
- Skip permissions (no roles required) → click Done.
- In the Service Accounts list, find your new account.
- Under Actions, click the ⋮ menu → Manage keys.
- Click Add key → Create new key.
- Choose JSON.
- A file will download automatically.
- Return to analytics.google.com
- Click Admin
- Under Property, click Property Access Management
- Click the blue + (top right) → Add user
- Enter the service account email (found in Google Cloud):
ga4-api-access@YOUR_PROJECT_ID.iam.gserviceaccount.com - Assign the Viewer role
- Click Add
- Go to this link while your project is selected:
https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com - Click Enable
- Open your Slickplan project
- Click the Metrics icon in the toolbar
- Enter your Property ID
- Under Service account, choose Custom
- Open your downloaded JSON file and copy all the contents
(everything from{to}) - Paste the JSON credentials into the field
- Click Connect
- Open the JSON file
- Look for
"project_id" - Make sure the same project is selected when enabling the API
- Re-enable the API or create a new JSON key
- Use your existing service account
- Generate a new JSON key
- Confirm the Analytics Data API is enabled
- Confirm the service account still has GA4 viewer access
Step 3: Generate your JSON key
This file contains your authentication credentials, so treat it like a password.
Step 4: Add the service account to your GA4 property
Your service account cannot access GA4 until you give it permission.
Step 5: Enable the Google Analytics Data API
If this API isn’t enabled, Slickplan cannot read your analytics.
Once enabled, it may take 1–2 minutes to propagate.
Step 6: Connect GA4 in Slickplan
If everything was done correctly, your metrics panel will load analytics data.
Troubleshooting & common issues
“Google Analytics Data API has not been used in project …”
This means the JSON file belongs to a different Google Cloud project than the one where the API is enabled.
Fix:
You can’t access the project ID shown in the error
Some apps create temporary internal Google Cloud projects.
To avoid this:
Always use your own project and your own service account JSON file.
GA4 property not showing any data
Make sure the service account was added under:
Property → Property Access Management
not Account access management.
JSON syntax errors
Ensure you pasted the entire file, including the opening and closing { }.
If you already created a service account
If you’ve done this before, you do not need a new project.
You can:
Then connect in Slickplan as normal.