Skip to main content
Network request reference · Google Analytics 4

GA4 /g/collect request

The request the Google tag sends to Google Analytics 4 for page views and other events.

The request at a glance

Request
POST or GET https://www.google-analytics.com/g/collect https://region1.google-analytics.com/g/collect
Typically triggered by
A page view or any other GA4 event
Related cookies
_ga, _ga_<container-id>

What this request is

/g/collect is where the Google tag (gtag.js), or a GA4 tag in Google Tag Manager, sends event data from the visitor's browser to Google Analytics 4. Each request carries one or more events.

Google documents the hosts and the consent fields on this request, and fully documents the separate server-side Measurement Protocol. It does not publish a reference for the browser request's query parameters, so most of the names below are how practitioners widely read them.

What typically triggers it

  • A page view when the Google tag or GA4 configuration tag loads.
  • Automatic and enhanced measurement events such as scroll, outbound click or file download.
  • Custom events sent with gtag('event') or fired by Google Tag Manager triggers. Several events can be batched into one request.

Important parameters

ParameterWhat it meansSource
gcsConsent state for ad_storage and analytics_storage, as set by consent mode.Vendor-documented
gcdDetailed consent state for each consent type.Vendor-documented
vProtocol version, 2 for GA4.Commonly observed, not documented by the vendor
tidMeasurement ID (G-XXXXXXX) of the GA4 property.Commonly observed, not documented by the vendor
cidClient ID, read from the _ga cookie.Commonly observed, not documented by the vendor
enEvent name, for example page_view or purchase.Commonly observed, not documented by the vendor
ep.<name>An event parameter with a text value.Commonly observed, not documented by the vendor
epn.<name>An event parameter with a numeric value.Commonly observed, not documented by the vendor
sidSession ID, the session start time in Unix seconds.Commonly observed, not documented by the vendor
sctSession count for this client.Commonly observed, not documented by the vendor
segWhether the session is engaged, 1 or 0.Commonly observed, not documented by the vendor
dlDocument location: the page URL.Commonly observed, not documented by the vendor
drDocument referrer.Commonly observed, not documented by the vendor
dtDocument title.Commonly observed, not documented by the vendor
_etEngagement time in milliseconds.Commonly observed, not documented by the vendor

When several events share a request, the shared parameters are in the URL and each event's own parameters are on separate lines of the request body.

In TagPipes: TagPipes Pulse reads the gcs consent-state parameter on Google requests like this one when it checks how tags behave against a site's consent banner.

How to find it on a site

  1. Open the site in Chrome, open DevTools (F12, or Cmd+Option+I on a Mac) and go to the Network tab.
  2. Reload the page and type /g/collect into the filter box.
  3. Click a matching request and open Payload to read its parameters. Some may be in the request body rather than the URL.
  4. Check tid to see which GA4 property received the event, and en for the event name.

Sources

The endpoint, the sender and the parameters marked vendor-documented were checked against the sources above on . Parameters marked commonly observed reflect how the request is widely read by practitioners; the vendor does not document them and can change them without notice. Browse all network requests.

Know when a tag stops firing

TagPipes Auditor checks with real browsers that your marketing pixels fire with the right parameters, and alerts you when tracking breaks. Pulse checks how marketing tags behave against your consent banner.

TagPipes monitors, configures and reports. It does not determine legal compliance and does not provide legal advice. Output is informational and reflects observed state at the time of observation. Rawsoft's expertise is technology, not law; please confirm any regulatory interpretation with your own counsel.