GA4 Request Decoder — Read Google Analytics /g/collect Hits

Debug Google Analytics 4 without guesswork. Copy a /g/collect request from the browser’s Network tab and paste it here — the URL, the request body or both — to see each event, its parameters, user properties, ecommerce items and the consent state (gcs) in plain words.

Runs in your browserUpdated

In DevTools → Network, filter by collect, then right-click the request → Copy → Copy URL (and Copy request payload for batched events).

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the GA4 Request Decoder

  1. Open your site with DevTools → Network and type collect in the filter.
  2. Click something that should send an event, then right-click the /g/collect request → Copy → Copy URL.
  3. Paste it here. If several events were batched, also paste the request payload below the URL.
  4. Read the shared fields (measurement ID, client ID, consent) and each event’s parameters.

What the fields mean

  • tid is the measurement ID, cid the client ID from the _ga cookie, sid the session ID and sct the session count.
  • en is the event name. ep.* are text parameters, epn.* number parameters, up.* and upn.* user properties.
  • pr1, pr2… are ecommerce items, with fields like id, nm (name), pr (price) and qt (quantity) joined by ~.
  • gcs is the consent state: G111 means ad and analytics storage are granted, G100 both denied. _dbg=1 means the hit goes to DebugView.
  • _ss marks a session start, _fv a first visit, _et the engagement time in milliseconds.

These parameters are not officially documented by Google and can change; the decoder labels the ones it knows and lists the rest as they are. Everything runs in your browser. To send your own events, use the GA4 Event Code Generator.

Also searched as: ga4 hit decoder, g/collect parameters, ga4 collect parameters explained, gcs parameter ga4, debug ga4 events, ga4 network request, ga4 debugger.

Tools that pair well with the GA4 Request Decoder

  • Google Tag Snippet Generator — Enter your GA4 measurement ID, Google Ads ID or Tag Manager container ID and get install code that is ready to paste — with Consent Mode v2 defaults, cross-domain linking, debug mode, manual page views and cookie settings switched on only when you need them.
  • URL Parser — Paste a URL to see every component and decoded query parameter — then edit, add or remove parameters and copy the rebuilt URL.
  • Event Tracking Script Generator — Track button clicks, links and form submits by adding attributes instead of code: data-track="sign_up_click" plus optional data-track-* parameters.
  • Cookie Consent Banner Generator — Add a cookie consent banner to any site — Webflow, WordPress, Shopify or plain HTML — without a paid plugin.

Frequently asked questions

Why does one request contain several events?
GA4 batches events that happen close together: shared fields are in the URL and each event is a line in the request body. Paste both to see them all.
What does gcs=G100 mean?
Consent Mode is on and both ad_storage and analytics_storage are denied, so the hit is a cookieless ping. After the visitor accepts it changes to G111 (or G101 with only analytics granted).
My event is not in the request — why?
Check the gtag or dataLayer code runs (look for errors in the console), the measurement ID is right and that an ad blocker is not blocking the request.
Can I install GA4 Request Decoder as a web app and use it offline?
Yes. GA4 Request Decoder is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools