Google Analytics 4
Traffic на всяка Google Analytics 4 property.
What you get
Section titled “What you get”| Metric | Meaning in Google Analytics | Period value |
|---|---|---|
| Visitors | Total users | Exact unique users for the whole period |
| Visits | Sessions | Sum of the days |
| Page views | Views (page and screen views) | Sum of the days |
Days в property reporting timezone. Last three days provisional — Google може да ревизира.
Before you start
Section titled “Before you start”- Editor или Administrator на property (add user).
- Google Cloud project за service account. Free Google account OK.
Service account = software Google account. Viewer на property; Metribay sign-in as it. Reuse за properties и Search Console.
Step 1: Create a service account
Section titled “Step 1: Create a service account”-
Google Cloud console — project или нов „Metribay“.
-
APIs & Services → Library — enable Google Analytics Data API и Google Analytics Admin API.
-
IAM & Admin → Service Accounts → Create service account, напр.
metribay-reader. Skip project roles → Done. -
Service account → Keys → Add key → Create new key → JSON. Download — пази го.
-
Copy email (
…iam.gserviceaccount.com).
Step 2: Give it access to your property
Section titled “Step 2: Give it access to your property”-
Google Analytics → Admin.
-
Property → Property access management (или Account access management за всички properties).
-
+ → Add users, paste service account email, Viewer. Untick email notification OK.
-
Add.
Step 3: Connect it in Metribay
Section titled “Step 3: Connect it in Metribay”-
Project page → Add data source → Google Analytics 4.
-
Connect an account with your own credentials → paste whole JSON в Service account JSON.
-
Save account and continue — key check.
-
Property от list. Reporting timezone auto.
-
Add and start import.
Delete local JSON after — Metribay keeps encrypted copy.
Enter the property by hand
Section titled “Enter the property by hand”Enter it manually:
- Property ID: number under Admin → Property details, напр.
412345678. NotG-measurement ID. - Property reporting timezone: Admin → Property details — must match.
Advanced: OAuth refresh token
Section titled “Advanced: OAuth refresh token”Use OAuth credentials instead: Client Id, Client Secret, Refresh Token with analytics.readonly. Empty Service account JSON. Only if you manage OAuth app.
If collection fails
Section titled “If collection fails”Property isn’t listed. Not added to property or Admin API off. Step 2, wait, Refresh list.
Needs attention after success. Access removed or key deleted. Re-add or new key → update connected account.
Sampled/thresholded data. Metribay won’t store estimates. Admin → Reporting identity → Device-based often fixes.