How do I set up data streams in GA4?

Applies to: Google Analytics 4 (GA4)
Last updated: May 2025


Problem

You need to configure Google Analytics 4 to start collecting data from your website or app. GA4 uses data streams to define where data comes from (e.g., web, iOS, or Android).


Solution

In GA4, you can create multiple data streams under a single property—typically one for each platform (e.g., website, Android app, iOS app). Each stream has its own unique settings and tracking code.


Step-by-Step Guide to Create a Data Stream

1. Log in to Google Analytics


2. Go to Admin Settings

  • Click the Admin gear icon in the lower-left corner
  • Under the Property column, click Data Streams

3. Choose a Platform

Click Add stream, then choose one of the following:

  • Web: For websites
  • iOS app: For iOS apps (requires Firebase setup)
  • Android app: For Android apps (also requires Firebase)

Most users start with a Web stream for a website.


4. Set Up a Web Data Stream

If you choose Web:

  1. Enter your website URL (e.g., https://www.example.com)
  2. Name your stream (e.g., “Main Website”)
  3. Make sure Enhanced Measurement is turned on (tracks scrolls, outbound clicks, file downloads, etc.)
  4. Click Create Stream

5. Get Your Measurement ID

After the stream is created, you’ll see a Measurement ID (e.g., G-XXXXXXXXXX) at the top right. You’ll need this to install GA4 on your site using gtag.js or Google Tag Manager.


Optional: Set Up Additional Data Streams

You can repeat the process for:

  • Mobile apps via Firebase integration
  • Subdomains or microsites using separate Web streams (or track all under one stream using filters and parameters)

Notes

  • Each property can have up to 50 data streams
  • A single Web data stream can track an entire domain (including subdomains)
  • GA4 does not use “Views” like Universal Analytics; instead, use filters or comparisons for segmentation

You may also like...