Web data streams are the most used stream type in GA4. When you enter a website URL and stream name, a measurement ID starting with G- is issued. Enter this ID into the gtag.js script or the GA4 configuration tag in Google Tag Manager to start collecting data.
Through enhanced measurement, web streams can automatically collect scrolling, outbound clicks, site searches, video, and file download events in addition to page views without additional code. This setting can be toggled on and off in the stream details screen.
If cross-domain tracking is necessary, add an accepted domain in the web stream settings. For example, if the main site and reservation page are different domains, both domains must be registered to prevent sessions from being disconnected.
Key takeaways
- After you enter the website URL and create the stream, a measurement ID (G-XXXXXXXX) is issued immediately.
- Enhanced Measurement automatically collects scrolling, clicks, searches, etc. without additional code.
- Setting up cross-domain tracking adds accepted domains within the 'tag configuration' of your web stream.
- Multiple web streams can be connected to one property, but purposes must be clearly distinguished to prevent domain confusion.
- Data can also be transmitted directly from the server to a web stream via Measurement Protocol.
