Sub topic 2
Turning Events On and Off in the Web Data Stream
Assume you already have a GA4 property, a web data stream, and the Google tag installed through gtag.js or Google Tag Manager. You should also understand that GA4 records interactions as events with parameters.
Enhanced measurement is configured at the web data stream level. It lets GA4 collect common interactions without adding a separate tag for each one.
Open enhanced measurement settings
- Sign in to Google Analytics.
- Select Admin.
- In the Data collection and modification column, select Data streams.
- Select your web data stream.
- In the Enhanced measurement section, select the settings icon.
- Use the main switch to turn enhanced measurement on or off.
- Use the individual switches to control specific event groups.
- Select Save if the interface asks you to confirm changes.
Turning the main switch off disables all enhanced measurement events for that stream. Turning off one individual setting disables only that event group.
| Setting | Events or behavior affected | Common reason to adjust it |
|---|---|---|
| Page views | `page_view`, including configured history changes | Prevent duplicate page views |
| Scrolls | `scroll` at 90% page depth | Avoid a low-value event or use custom thresholds |
| Outbound clicks | `click` for links to other domains | Exclude links that should not count as exits |
| Site search | `view_search_results` | Match your site's query parameter |
| Video engagement | `video_start`, `video_progress`, `video_complete` | Disable if YouTube tracking is not relevant |
| File downloads | `file_download` | Limit or remove automatic download tracking |
| Forms | `form_start`, `form_submit` when detected | Avoid unreliable form tracking |
Configure individual settings
Select the arrow or edit control beside an event group to view additional options.
Page views can include page changes detected through browser history events. This setting matters for single-page applications, where the browser URL changes without a full page reload. Keep it enabled only when the Google tag is not already sending a page view for each virtual route change.
Site search has a configurable list of query parameters. GA4 checks the page URL for these parameters and uses the value as the search term. Common parameters include q, query, search, and keyword. Add the parameter used by your site, but do not add unrelated parameters. You can usually enter multiple names separated by commas.
Some settings provide exclusions. For example, you can configure domains that should not count as outbound-click destinations. Use these exclusions when a related domain is part of the same user journey.
Verify the configuration
After saving, open the site in a test browser. Trigger the interaction that the setting should collect. For example, open an external link, scroll to the bottom of a page, or submit a test form.
Use DebugView to inspect incoming events. DebugView requires a debug signal, such as Tag Assistant preview mode or the debug_mode setting in the Google tag. Select an event to inspect its parameters. Confirm that the event name and values match your expectations.
A setting being enabled does not guarantee that every interaction will be detected. Consent settings, browser restrictions, embedded content, application frameworks, and custom site behavior can affect collection.
Exercise
Your site uses ?term=shoes for searches, but the site search setting contains only q. What should you change?
Show answer
Add term to the site's search query parameter list, then run a test search and verify view_search_results in DebugView.