Site · How to add Google Analytics to WordPress · Connect Google Analytics · Combine multiple GA4 properties · Compare plugins · Agency report · Privacy
YouAnalytics is a Google Analytics WordPress plugin (a GA4 WordPress plugin) that builds one verified brief across every selected Google Analytics 4 property: combined audience, page views, sessions, sources, and the sites behind those numbers.
It is a WordPress analytics plugin for people who run Google Analytics for multiple websites — agencies, portfolio owners, and anyone who needs a screenshot-ready WordPress GA4 report. It does not install the GA4 tracking tag. Use Site Kit by Google, Google Tag Manager, or another tag plugin on each site to collect data. YouAnalytics reads those properties and rolls the figures into one brief.
Who should install it. You already have GA4 on several sites and you need one page you can print. Who should skip it. You only need to add GA4 to one WordPress site (use Site Kit), or you need unique users across brands (that is a GA4 360 roll-up).
Google sign-in, token refresh, and Analytics API calls go through Composio. YouAnalytics never stores Google passwords or OAuth tokens. Access is read-only (analytics.readonly).
Totals are the sum of each property. A person who visited two sites is counted twice. That is not a GA4 roll-up property (360 only, unique users). The brief states this on the page.
- What this WordPress analytics plugin does
- Combine multiple GA4 properties
- YouAnalytics vs other Google Analytics WordPress plugins
- How to add Google Analytics to WordPress
- Install
- Connect Google Analytics
- Privacy
- FAQ
- Combined audience across selected properties (lifetime and last 28 days)
- Page views, sessions, new users, 28-day active users, engagement, average session
- Traffic sources: Direct, Google Search, AI referrers, social, and others
- Each property listed, with primary and secondary callouts
- A Google Analytics dashboard in WordPress that is a verified brief — not a replacement for the GA4 UI
- Live refresh from Google Analytics every 6 hours
- Optional PIN to lock Last 28 days and property figures
- Fullscreen brief for print or PDF (investor or agency report)
How numbers combine. Users, page views, sessions, and new users are sums. Engagement rate and average session duration are session-weighted (a busy site moves the combined rate more than a quiet one). Sparklines on the brief are decorative — not extra GA4 time-series. Failed reads show as unavailable, not as zeros.
Date windows. Lifetime is 14 August 2015 through yesterday. Last 28 days is 28daysAgo through yesterday. Today’s Realtime is not included. Each property uses its own GA4 reporting time zone for those dates.
Looker Studio can blend a small number of GA4 sources (commonly five per blend). Native unique-user merge is a GA4 360 roll-up.
YouAnalytics is a Google Analytics 360 rollup alternative for standard GA4: you choose properties, it sums users, sessions, and views, and you get one brief in WordPress. No Looker file, no BigQuery, no 360 order. It does not de-duplicate people across sites.
Worked example. Property A has 1,200 users in 28 days. Property B has 800. The brief shows 2,000. If 300 people used both sites, unique people would be 1,700 — only 360 roll-up can show that. The brief states that totals are sums.
Guides (longer than this README):
- How to add Google Analytics to WordPress
- Connect Google Analytics to WordPress
- Combine multiple GA4 properties
- Best Google Analytics plugin for WordPress
- Agency Google Analytics report
| YouAnalytics | Site Kit / MonsterInsights | Looker Studio | GA4 360 roll-up | |
|---|---|---|---|---|
| Adds the GA4 tracking tag | No | Yes | No | No |
| One-site dashboard in wp-admin | Brief, not a full GA UI | Yes | No | No |
| Combine many GA4 properties | Yes (sums) | One property at a time | Blend limits | Yes (unique users, 360) |
| Unique users across websites | No | N/A | Depends on model | Yes, when identity matches |
| Pitch-deck / print brief | Yes | No | You build it | In GA4 |
Site Kit and MonsterInsights are the right tools to connect Google Analytics to WordPress for a single site. YouAnalytics is the right tool when you already have GA4 on many sites and need one report.
Do not run two plugins that both inject the GA4 tag on the same site. YouAnalytics does not inject a tag, so it can sit next to Site Kit or Tag Manager.
- Collect data on each site. Install GA4 with Site Kit, Google Tag Manager, or a lightweight tag plugin. Wait until Realtime or reports show traffic.
- Install YouAnalytics on the WordPress site where you want the brief (often your main or agency site).
- Connect Google Analytics with Continue with Google (read-only).
- Choose accounts and properties, then read figures.
- Open Brief for a chrome-free page you can screenshot, print, or share without handing over the Google account.
Requires: WordPress 6.0+, PHP 7.4+, a Composio project API key, and a Google account that can view your GA4 properties.
- Zip the plugin so
cumulative-analytics.phpis at the archive root (not in a nested folder). - In WordPress go to Plugins → Add New → Upload Plugin.
- Activate YouAnalytics.
- Open YouAnalytics in the admin menu.
- Create a Composio project and copy the API key.
- Paste it under YouAnalytics → Connection, or copy
ca-local.example.phptoca-local.phpon the server (empty placeholders only). - Click Continue with Google and approve read-only Analytics.
- Select properties (skip roll-up and subproperties so they are not counted twice).
- Open Brief.
ca-local.php is gitignored. Do not commit API keys.
[youanalytics]
Administrators only. Use it on a private page if you want the brief outside wp-admin. [cumulative_analytics] still works.
| Stored | Not stored |
|---|---|
| Encrypted Composio API key (if pasted in wp-admin) | Google passwords |
| Composio connection id | Google OAuth tokens |
| Display name, PIN hash, selected property ids | Hit-level Analytics hits |
| Aggregated snapshot used to render the brief |
OAuth scope: analytics.readonly. YouAnalytics does not write to Google Analytics.
Yes. Put a GA4 tag on the site (Site Kit, Tag Manager, or similar). YouAnalytics then reads those GA4 properties into one brief.
For adding GA4 to one site, use Site Kit (official, free) or a dedicated tracking plugin. For one report across many properties, use YouAnalytics.
Yes, because YouAnalytics does not add a second tracking tag. Do not run two tracking plugins on the same site.
Select them in YouAnalytics and read figures. Looker Studio blends are capped; 360 roll-up is the unique-user option. YouAnalytics sums standard GA4 properties.
Not in this plugin. Each property’s users are added together. Unique cross-property users need a 360 roll-up (and matching identity). The brief says this.
For Google’s native roll-up property, yes. YouAnalytics works on standard GA4 and does not replace 360 unique-user reporting.
Native blends are limited (often five sources). YouAnalytics does not use Looker Studio; it reads selected properties in WordPress.
No. YouAnalytics only needs read access to existing GA4 properties. Each site still needs some collection method (GTM, Site Kit, or a tag).
YouAnalytics does not. You sign in with Google via Composio. Tokens stay with Composio.
Open Brief, then print or save PDF. Optional PIN hides Last 28 days and property-level figures.
Figures refresh from Google Analytics every six hours, and you can refresh manually.
On the brief, under Sources (AI bucket), alongside Direct, Google Search, and other channels.
A property is the reporting container (one site or app in Analytics). A data stream is a web or app source inside that property. YouAnalytics reports at property level.
Put a GA4 tag on each site first (Site Kit, Tag Manager, or similar). Then install YouAnalytics where you want the combined brief. Step-by-step: How to add Google Analytics to WordPress.
Use Site Kit by Google on that site. YouAnalytics still does not add a tag.
Realtime can appear in minutes. Standard reports often take several hours. YouAnalytics can only read what Analytics already has.
Read-only: analytics.readonly. YouAnalytics does not write to Google Analytics.
Install a tag on each site (usually one GA4 property per site). Connect those properties in YouAnalytics on one WordPress install to get a single report.
Set a 4–8 digit PIN in YouAnalytics → Connection. Lifetime totals stay visible; Last 28 days and property cards wait for the PIN.
MIT. See LICENSE. Author: Roktim saha. Source: github.com/hlotiim/YouAnalytics.
