Ask any question about Analytics & Tracking here... and get an instant response.
How do I set up custom events in Google Tag Manager for GA4?
Asked on Oct 28, 2025
Answer
To set up custom events 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. Go to your GTM account and click on "Tags" in the left sidebar.
2. Click "New" to create a new tag.
3. Choose "Tag Configuration" and select "GA4 Event" as the tag type.
4. Enter your GA4 Measurement ID in the "Configuration Tag" field.
5. Name your event in the "Event Name" field (e.g., "custom_event").
6. Add any event parameters needed (e.g., "event_category", "event_label").
7. Set up a trigger to specify when the event should be sent (e.g., button click).
8. Save the tag and publish your container.
<!-- END COPY / PASTE -->Additional Comment:
- Ensure your GA4 Measurement ID is correctly set in the configuration tag.
- Use descriptive names for events and parameters to make reporting easier.
- Test the tag using GTM's Preview mode before publishing to ensure it fires correctly.
- Check the Realtime report in GA4 to verify that events are being recorded.
Recommended Links:
