# Set up a GA4 web event without duplicate tags
Install the Google tag once, send a confirmed generate_lead event, and check the tag, measurement ID and DebugView receipt without duplicate collection.
- Canonical: https://satracking.net/guides/configurar-eventos-web-ga4/
- Language: en
- Category: platforms
- Level: intermediate
- Published: 2026-11-10
- Updated: 2026-11-10
---
## Before you start
Install the Google tag once, send a confirmed generate_lead event, and check the tag, measurement ID and DebugView receipt without duplicate collection. You need a GA4 property, a web stream, and access to the site or GTM. Check whether your theme, plugin, or container already installs the Google tag. Use a test property while setting this up.
## 1. Install the Google tag once
For a direct gtag.js install, place this in the shared head and replace both example measurement IDs. G-XXXXXXXXXX is a placeholder.
~~~html
~~~
If GTM already owns your tags, configure the Google tag there instead of installing a second copy. The config call can send a page_view, so check your current setup before adding another. If consent is required before Google loads, do not load this code before the visitor makes that choice.
## 2. Send a confirmed event
Call GA4 after the application confirms that the form succeeded:
~~~js
gtag('event', 'generate_lead', { form_type: 'demo' });
~~~
Replace demo with a controlled value that does not identify anyone. With GTM, send a generic data-layer message, create a Custom Event trigger and variables, and map them into a GA4 Event tag. The queue message does not reach GA4 unless a configured tag forwards it. Do not send both the direct call and GTM tag for the same action.
## 3. Verify the result
Use Tag Assistant to confirm the intended tag, measurement ID, and parameters. Then check GA4 DebugView and Realtime. A browser request or detected tag shows attempted delivery, not that GA4 processed the event.
Check for duplicate base tags, SPA route listeners, consent blocking, filters, and the wrong property. See Google's [Google tag guide](https://developers.google.com/tag-platform/gtagjs), [GA4 event guide](https://developers.google.com/analytics/devguides/collection/ga4/events), and [DebugView help](https://support.google.com/analytics/answer/7201382?hl=en). Use the [dashboard](/audit/) to inspect browser-visible activity, then confirm event receipt in GA4 DebugView.
## Official references
- Google tag setup — https://developers.google.com/tag-platform/gtagjs (verified 2026-11-10)
- GA4 event setup — https://developers.google.com/analytics/devguides/collection/ga4/events (verified 2026-11-10)
- GA4 event parameters — https://developers.google.com/analytics/devguides/collection/ga4/event-parameters (verified 2026-11-10)
- GA4 DebugView — https://support.google.com/analytics/answer/7201382?hl=en (verified 2026-11-10)