Skip to content

Repository files navigation

YouAnalytics – Google Analytics WordPress plugin for all your GA4 properties

Site · How to add Google Analytics to WordPress · Connect Google Analytics · Combine multiple GA4 properties · Compare plugins · Agency report · Privacy

YouAnalytics Google Analytics WordPress plugin: one verified brief for all GA4 properties. Combined audience, page views, and sessions. Sums, not unique people. Example figures.

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

  • 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.

Combine multiple GA4 properties (without Looker Studio or 360)

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):

YouAnalytics vs other Google Analytics WordPress plugins

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.

How to add Google Analytics to WordPress (then roll it up)

  1. 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.
  2. Install YouAnalytics on the WordPress site where you want the brief (often your main or agency site).
  3. Connect Google Analytics with Continue with Google (read-only).
  4. Choose accounts and properties, then read figures.
  5. Open Brief for a chrome-free page you can screenshot, print, or share without handing over the Google account.

Install

Requires: WordPress 6.0+, PHP 7.4+, a Composio project API key, and a Google account that can view your GA4 properties.

  1. Zip the plugin so cumulative-analytics.php is at the archive root (not in a nested folder).
  2. In WordPress go to Plugins → Add New → Upload Plugin.
  3. Activate YouAnalytics.
  4. Open YouAnalytics in the admin menu.

Connect Google Analytics

  1. Create a Composio project and copy the API key.
  2. Paste it under YouAnalytics → Connection, or copy ca-local.example.php to ca-local.php on the server (empty placeholders only).
  3. Click Continue with Google and approve read-only Analytics.
  4. Select properties (skip roll-up and subproperties so they are not counted twice).
  5. Open Brief.

ca-local.php is gitignored. Do not commit API keys.

Shortcode

[youanalytics]

Administrators only. Use it on a private page if you want the brief outside wp-admin. [cumulative_analytics] still works.

Privacy and what is stored

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.

Frequently asked questions

Does Google Analytics work with WordPress?

Yes. Put a GA4 tag on the site (Site Kit, Tag Manager, or similar). YouAnalytics then reads those GA4 properties into one brief.

What is the best Google Analytics plugin for WordPress?

For adding GA4 to one site, use Site Kit (official, free) or a dedicated tracking plugin. For one report across many properties, use YouAnalytics.

Can I use YouAnalytics together with Site Kit or MonsterInsights?

Yes, because YouAnalytics does not add a second tracking tag. Do not run two tracking plugins on the same site.

How do I combine multiple GA4 properties in one report?

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.

Are GA4 users unique across multiple websites?

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.

Do I need Google Analytics 360 for a roll-up?

For Google’s native roll-up property, yes. YouAnalytics works on standard GA4 and does not replace 360 unique-user reporting.

Does Looker Studio support more than five GA4 properties?

Native blends are limited (often five sources). YouAnalytics does not use Looker Studio; it reads selected properties in WordPress.

Do I need Google Tag Manager to use YouAnalytics?

No. YouAnalytics only needs read access to existing GA4 properties. Each site still needs some collection method (GTM, Site Kit, or a tag).

Can a WordPress plugin store my Google password?

YouAnalytics does not. You sign in with Google via Composio. Tokens stay with Composio.

How do I share Google Analytics with investors without giving account access?

Open Brief, then print or save PDF. Optional PIN hides Last 28 days and property-level figures.

How often does data refresh?

Figures refresh from Google Analytics every six hours, and you can refresh manually.

Where do ChatGPT and other AI referrers show up?

On the brief, under Sources (AI bucket), alongside Direct, Google Search, and other channels.

What is a GA4 property vs a data stream?

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.

How do I add Google Analytics to WordPress?

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.

How do I install GA4 on WordPress without code?

Use Site Kit by Google on that site. YouAnalytics still does not add a tag.

How long until Google Analytics shows data?

Realtime can appear in minutes. Standard reports often take several hours. YouAnalytics can only read what Analytics already has.

What permissions does Google Analytics OAuth request?

Read-only: analytics.readonly. YouAnalytics does not write to Google Analytics.

How do I add Google Analytics to multiple WordPress sites?

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.

How do I lock Last 28 days analytics behind a PIN?

Set a 4–8 digit PIN in YouAnalytics → Connection. Lifetime totals stay visible; Last 28 days and property cards wait for the PIN.

License

MIT. See LICENSE. Author: Roktim saha. Source: github.com/hlotiim/YouAnalytics.

About

Google Analytics WordPress plugin: combine multiple GA4 properties into one verified brief. Sums, not unique users.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages