Your GA4 data, straight from Google
Sign in with Google and this page reads your Google Analytics 4 properties directly through Google’s Analytics Data API — users, sessions, traffic sources, top pages, devices and who is on your site right now. No server, no stored data, no charts until real data arrives.
Not connected
1 · Connect Google
Google requires an OAuth client ID that lists this website as an allowed origin. It is public (not a secret) and is saved only in this browser.
How to get a client ID (≈10 minutes, free)
- Open Google Cloud → Credentials and create (or pick) a project.
- Enable the Google Analytics Data API and the Google Analytics Admin API.
- Configure the OAuth consent screen (External, Testing) and add your Google account as a test user.
- Create credentials → OAuth client ID → Web application. Under Authorized JavaScript origins add
. - Paste the client ID above and press Sign in with Google. The page asks only for read-only Analytics access (
analytics.readonly).
Advanced: use an access token instead
For a quick test you can paste a short-lived token from the OAuth 2.0 Playground (scope https://www.googleapis.com/auth/analytics.readonly). It is kept in memory only.
2 · Choose property & dates
—
Active users now (30 min)
—
Active users
—
Sessions
—
Page views
Sessions per day
Traffic sources
Devices
Top pages
| Page | Views | Users | Avg engagement |
|---|
How this works & sources
- Sign-in uses Google Identity Services (token model). The access token lives in memory for about an hour and is never sent anywhere except Google.
- Properties:
GET analyticsadmin.googleapis.com/v1beta/accountSummaries. Reports:POST analyticsdata.googleapis.com/v1beta/properties/{id}:runReportand:runRealtimeReport. GA4 Data API docs. - Metrics:
activeUsers, sessions, screenPageViews, engagementRate, userEngagementDuration; dimensions:date, sessionDefaultChannelGroup, deviceCategory, pagePath. Avg engagement per page = userEngagementDuration ÷ activeUsers. - AI summary sends only the aggregated numbers shown on this page to the site AI; the text is AI-generated.
- The previous version depended on a retired server for sign-in and reports, so it could never show data. It now talks to Google directly.
GA4 dashboard · Barbrick Design