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 06, 2025
Answer
To set up a custom event in Google Tag Manager (GTM) for Google Analytics 4 (GA4), you'll need to configure a new tag that sends event data to your GA4 property. This involves creating a GA4 Event tag and setting the appropriate triggers to fire the event under specific conditions.
<!-- BEGIN COPY / PASTE -->
1. Open Google Tag Manager and click on "Tags" in the left sidebar.
2. Click "New" to create a new tag.
3. Choose "Tag Configuration" and select "GA4 Event" from the list.
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 parameters you want to track with the event (e.g., 'category', 'action').
7. Set up a trigger to define when this event should be sent (e.g., on a button click).
8. Save your tag and publish the changes.
<!-- END COPY / PASTE -->Additional Comment:
- Ensure your GA4 Measurement ID is correctly set up in GTM under Admin → Data Streams.
- Test your tag in GTM's Preview mode to verify it fires correctly.
- Use GA4's DebugView to confirm the event is being received by your GA4 property.
- Custom events can be used to track specific user interactions that are not automatically captured by GA4.
Recommended Links:
