Logo of TAGGRS, written in blue and with a small favicon
HomeServer-side Tracking
Start for free
Introduction
Get started
Get started with TAGGRSSet up Google Tag ManagerAdd the GTM Data LayerConfigure GTM transformationsTest the setupDebuggingAnalytics dashboard
Migrate from Google CloudMigrate from hosting
Shortcuts
GTM Copy PasteReady-made templates
GA4 Server-side Tracking
Setup in GTMCreate GA4 Event TagsGA4 tag setup in server containerE-commerce events in GTM
Google Ads Server-side Tracking
Install Conversion LinkerSet up Conversion TrackingConfigure Enhanced ConversionsDeploy Remarketing Tags
Facebook Server-side Tracking
Set Meta PixelImprove your EMQ ScoreInstall Meta CAPIMeta Events DeduplicationMeta CAPI Gateway
LinkedIn Server-side Tracking
Install LinkedIn Insight TagSet up LinkedIn CAPILinkedIn Events Deduplication
TikTok Server-side Tracking
Set up TikTok PixelInstall TikTok Events APITikTok Events Deduplication
Pinterest Server-side Tracking
Set up Pinterest TagConfigure Pinterest Conversions APIPinterest Events Deduplication
Snapchat Server-side Tracking
Set up Snap PixelSnapchat Conversions APISnapchat Events Deduplication
TAGGRS Tracking Tags and Tools
Tracking TagsGoogle Service Account integrationsGTM LogsProfit TrackingData Enricher ToolWebhooks TesterEnhanced Tracking ScriptMulti Domain ToolClick ID RecoveryConsent Tool
Configurations
Billy Grace Server-side TrackingLeadPages Server-side TrackingPiwik PRO Server-side TrackingCDN Server-side TrackingShopify Server-side TrackingActiveCampaign Server-side TrackingKlaviyo Server-side Tracking
Server-side Tracking for e-commerce
Shopify Data LayerShopware Data LayerMagento Data LayerWooCommerce Data LayerPrestashop Data LayerLightspeed Data Layer
Consent Management server-side
Activate Consent ModeConfigure TAGGRS with Axeptio

Create GA4 Event Tags in Google Tag Manager

This guide provides clear, step-by-step instructions to create GA4 event tags in Google Tag Manager (GTM), ensuring your event data is structured, reliable, and ready for advanced server-side processing.
Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
GA4 event tags are essential for tracking specific user interactions (e.g. clicks, form submissions, or e-commerce actions) on your website or app and sending that data to Google Analytics 4.

Prerequisites

  • A Google Tag Manager account and container set up for your website
  • GA4 configuration tag already implemented in your web container
  • Your GA4 Measurement ID (found in GA4 Admin → Data Streams)
  • The GTM container code installed on your website

Create a new GA4 Event Tag

  1. Log in to Google Tag Manager and select your website’s container.
  2. In the left sidebar, click Tags, then select New.

Configure the GA4 Event Tag

  1. Click Tag Configuration and select Google Analytics: GA4 Event as the tag type.
  2. Under Configuration Tag, select your existing GA4 Configuration tag.
  3. Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
    If you haven’t created a GA4 Configuration tag yet, follow this guide to set it up.
    Enter the name of the event you want to track (e.g., purchase, signup, button_click). For dynamic event tracking, you can use a variable like {{Event}} to capture multiple event types.
  4. Event Parameters (optional):

    • Add parameters to provide more context, like value, currency, item_id.

    • For e-commerce, check Send e-commerce data and select Data Layer to automatically include data layer parameters.

    • For manual control, add each parameter individually—ensure corresponding variables are set up in GTM.

Set the trigger

  1. Click Triggering and select or create a trigger for when the event should fire (e.g., click, form submission, page view).

    For e-commerce, you can use a trigger that listens for all relevant e-commerce events if you use {{Event}} as the event name.

  2. Name your tag descriptively (e.g., “GA4 Event – Purchase”) and click Save.

Save and publish

Use GTM’s Preview Mode to verify that your event fires as expected and data appears in GA4’s Realtime or DebugView reports. Double-check this step within the full Google's documentation.
Once confirmed, Submit and Publish your GTM container changes.

Best practices

Data layer usage
Using the data layer ensures your event data is structured and reliable. For e-commerce, always send relevant transaction details via the data layer for accurate GA4 reporting.
Event naming
Use Google’s recommended event names for standard actions to unlock GA4’s advanced reporting features.
Parameter management
Only send necessary and privacy-compliant parameters. Avoid sending personally identifiable information (PII).
Server-side forwarding
If using Server-side Tagging, ensure your event tag sends data to your server container endpoint, not directly to GA4. This maximizes data quality and privacy.

Troubleshooting

Event not firing
Check trigger configuration and ensure tag is published
Data missing in GA4
Verify Measurement ID, data layer setup, and server container endpoint
Incorrect parameters
Double-check parameter names and variable mappings in GTM
E-commerce data not tracked
Ensure Send e-commerce data is enabled and data layer is populated

Next steps

Create GA4 tags in your server container
Implement e-commerce event tracking

Useful resources

Google Analytics 4 server-side tracking - The full manual
Find expert support
Previous
GA4 setup in GTM
Next
Create GA4 tags
Copyright © 2025 TAGGRS. All right reserved.
TABLE OF CONTENTS
PrerequisitesCreate a new GA4 Event TagConfigure the GA4 Event TagSet the triggerSave and publishBest practicesTroubleshootingNext stepsUseful resources