Ask any question about Analytics & Tracking here... and get an instant response.
How do I set up a custom event in Google Tag Manager for GA4?
Asked on Nov 12, 2025
Answer
To set up a custom event in Google Tag Manager (GTM) for Google Analytics 4 (GA4), you need to create a new tag that sends event data to your GA4 property. This involves configuring the tag with the appropriate event parameters and triggers.
<!-- BEGIN COPY / PASTE -->
1. In GTM, click "Tags" and then "New".
2. Choose "Tag Configuration" and select "Google Analytics: GA4 Event".
3. Enter your GA4 Measurement ID.
4. Set "Event Name" to your custom event name (e.g., 'custom_event').
5. Add any additional parameters needed for your event.
6. Set a trigger to fire the tag (e.g., "All Pages" or a specific button click).
7. Save the tag and publish your container.
<!-- END COPY / PASTE -->Additional Comment:
- Ensure your GA4 Measurement ID is correctly set up in GTM under "Variables" for easy reuse.
- Test your tag using GTM's "Preview" mode to verify that the event fires as expected.
- Check your GA4 property under "Reports → Engagement → Events" to confirm event data is being collected.
Recommended Links:
