Ask any question about Analytics & Tracking here... and get an instant response.
How do I set up custom events in Google Analytics 4 using GTM?
Asked on Nov 22, 2025
Answer
To set up custom events in Google Analytics 4 (GA4) using Google Tag Manager (GTM), you need to create a new tag in GTM that sends event data to your GA4 property. This involves configuring the tag with the appropriate event parameters and triggers.
<!-- BEGIN COPY / PASTE -->
1. Open Google Tag Manager and click on "Tags" in the left-hand menu.
2. Click "New" to create a new tag.
3. Choose "Tag Configuration" and select "Google Analytics: GA4 Event".
4. Enter your GA4 Measurement ID in the "Configuration Tag" field.
5. Name your event in the "Event Name" field.
6. Add any additional parameters you want to track (e.g., category, action).
7. Set up a trigger to fire the tag (e.g., on a button click).
8. Save your tag and publish the container.
<!-- END COPY / PASTE -->Additional Comment:
- Ensure your GA4 property is correctly set up and linked in GTM.
- Test your event using GTM's Preview mode to verify it fires correctly.
- Review the event in GA4 by navigating to Reports → Engagement → Events.
- Custom events help track specific user interactions not covered by default GA4 events.
Recommended Links:
