Skip to content

Google Analytics 4

Saobraćaj bilo koje Google Analytics 4 property.

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

Dani u property reporting timezone. Poslednja tri dana provisional — Google može revidirati.

  • Editor ili Administrator na property (add user).
  • Google Cloud project za service account. Besplatan Google nalog OK.

Service account = Google nalog za softver. Viewer na property; Metribay se prijavljuje kao on. Reuse za properties i Search Console.

  1. Google Cloud console — project ili nov „Metribay“.

  2. APIs & Services → Library — enable Google Analytics Data API i Google Analytics Admin API.

  3. IAM & Admin → Service Accounts → Create service account, npr. metribay-reader. Preskoči project roles → Done.

  4. Service account → Keys → Add key → Create new key → JSON. Download — čuvaj.

  5. Kopiraj email (…iam.gserviceaccount.com).

  1. Google Analytics → Admin.

  2. Property → Property access management (ili Account access management za sve properties).

  3. + → Add users, paste service account email, Viewer. Untick email notification OK.

  4. Add.

  1. Project page → Add data source → Google Analytics 4.

  2. Connect an account with your own credentials → paste ceo JSON u Service account JSON.

  3. Save account and continue — provera key-a.

  4. Property sa liste. Reporting timezone auto.

  5. Add and start import.

Obriši lokalni JSON posle — Metribay drži šifrovanu kopiju.

Enter it manually:

  • Property ID: broj pod Admin → Property details, npr. 412345678. Ne G- measurement ID.
  • Property reporting timezone: Admin → Property details — mora da se slaže.

Use OAuth credentials instead: Client Id, Client Secret, Refresh Token sa analytics.readonly. Prazan Service account JSON. Samo ako vodiš OAuth app.

Property isn’t listed. Nije dodat na property ili Admin API off. Korak 2, sačekaj, Refresh list.

Needs attention after success. Pristup uklonjen ili key obrisan. Ponovo dodaj ili nov key → update connected account.

Sampled/thresholded data. Metribay ne čuva procene. Admin → Reporting identity → Device-based često rešava.

Troubleshooting.