FoxPlug Help / Connect your tools
Connect Google Analytics 4: what to paste and what FoxPlug reads
Google's web and app analytics product, reporting users, sessions, sources and conversions for a property. FoxPlug reads it only when you press Check for what's new. What you give it: Google Cloud service-account JSON key with the Analytics Data API, added as Viewer on the property.
Where to find it: In FoxPlug open Settings, then Publishing & integrations, then the Analytics section, and press How to connect next to Google Analytics 4. Faster: press / in Settings and type Google Analytics 4. Open it in FoxPlug
Steps
- In the Google Cloud Console (right project selected): APIs and services, Library, enable Google Analytics Data API.
- IAM and Admin, Service Accounts, create a service account named FoxPlug; it needs no Cloud role.
- Open it, Keys tab, Add key, Create new key, JSON; a .json file downloads.
- Copy the entire JSON contents.
- In analytics.google.com Admin, Property access management: add the service account's client_email as Viewer on that property.
- Property details: copy the Property ID (digits).
- Paste the Property ID and the full JSON key into FoxPlug.
- Press the connect button in FoxPlug. FoxPlug checks the key or sign-in straight away and tells you in plain words if it was refused.
Try it on your own site first
Paste your site address and see the brief FoxPlug writes from it, right here. Free, no account, no card.
Good to know
- What to give: Google Cloud service-account JSON key with the Analytics Data API, added as Viewer on the property. Give it read-only access.
- What FoxPlug looks at: daily users; daily sessions; daily pageviews; average session duration; bounce rate.
- Everything FoxPlug reads from Google Analytics 4, and what it never reads, is on its integration page.
- You can disconnect any time from the same place, and the stored key is deleted.
What it does not do
- traffic sources, campaigns, conversions or event-level data (the report asks for five metrics by date only).
- other properties on your Google account (only the saved Property ID is queried).
Related
- The Your connections card: what each state means
- The Check for what's new button
- Connect Google Search Console: what to paste and what FoxPlug reads
- Connect Plausible: what to paste and what FoxPlug reads
Something here not matching what you see? Write to hello@foxplug.com and say which line. Last checked 2026-11-13.