{"id":226355,"date":"2024-08-02T19:13:43","date_gmt":"2024-08-02T19:13:43","guid":{"rendered":"https:\/\/datatrue.com\/?page_id=226355"},"modified":"2026-04-24T04:45:35","modified_gmt":"2026-04-24T04:45:35","slug":"ga4-event-tracking-set-up","status":"publish","type":"page","link":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/","title":{"rendered":"GA4 Event Tracking Setup: Custom Events &amp; GTM Guide | DataTrue"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#042A14&#8243; custom_padding=&#8221;100px||0px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3><span style=\"color: #339966;\">Guide to GA4 Event Tracking Set Up<\/span><\/h3>\n<h1 style=\"text-align: left;\"><span style=\"font-weight: 400; color: #ffffff;\">How to Set Up Event Tracking in Google Analytics 4<\/span><\/h1>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||7px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;2_3,1_3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;2_3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;g1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h1><span style=\"font-weight: 400;\">How to Set Up Event Tracking in Google Analytics 4<\/span><\/h1>\n<p><span style=\"font-weight: 400;\">Event tracking is one of the most important elements of any analytics software. By building an understanding of how customers interact with your website, you can facilitate superior user journeys and improve conversion rates.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With the arrival of Google Analytics 4, companies will have to adjust to new systems for event tracking to wrap their heads around. Our step-by-step guide will take you through everything you need to know about event tracking GA4, including the setup process.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Read on to improve your understanding of this all-important process.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">How does event tracking work in GA4?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Event tracking in Google Analytics 4 works by adding tags to your website which track user interactions on each page. The level of data customisation and detail will usually depend on how the data layer and individual tags are set up.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Tracking events via GA4 requires a tag manager. If you are using Google Analytics 4 in your setup, you will find Google Tag Manager is by far the most convenient option available.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Prior to setting up event tracking in GA4, you will need to take all the necessary steps to complete the initial integration with GA4 and your tag manager.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Another important element of GA4 event tracking is your data layer. A data layer allows you to create a single source of data to be used throughout your tech stack, increasing accuracy and flexibility between your applications.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For more information, check out our complete guide to configuring your data layer.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_blurb title=&#8221;Table of Contents&#8221; use_icon=&#8221;on&#8221; content_max_width=&#8221;755px&#8221; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; header_font=&#8221;ABeeZee|700|||||||&#8221; header_text_align=&#8221;center&#8221; background_color=&#8221;#D4E3E9&#8243; custom_padding=&#8221;|||14px|false|false&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<ul>\n<li><a href=\"#g1\">How to set up Event Tracking in Google Analytics4<\/a><\/li>\n<li><a href=\"#g1\">How does event tracking work in GA4<\/a><\/li>\n<li><a href=\"#g2\">Types of events in GA4<\/a><\/li>\n<li><a href=\"#g3\">How to set up events in Google Analytics 4: step-by step guide <\/a>\n<ul>\n<li><a href=\"#g3\">How to set up GA4 event tracking with a data layer<\/a><\/li>\n<li><a href=\"#g4\">How to set up GA4 event tracking without a data layer<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#g6\">How to see your events in GA4<\/a><\/li>\n<li><a href=\"#g6\">Complying with the GDPR and CCPA while tracking events in GA4<\/a><\/li>\n<li><a href=\"#g7\">Use DataTrue to manage your tags an data layer<\/a><\/li>\n<\/ul>\n<p>[\/et_pb_blurb][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; min_height=&#8221;4923.2px&#8221; custom_padding=&#8221;68px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-99px|auto||auto||&#8221; custom_padding=&#8221;22px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;g2&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>&nbsp;<\/p>\n<h2><span style=\"font-weight: 400;\">Types of events in GA4<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">There are 4 different categories of events in GA4. 2 of these event types are automatically collected.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The other 2 events require setting up to take place for event tracking to begin. Find out more about each event category below.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">Automatically collected events<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Automatically collected events will be automatically tracked once the<\/span><a href=\"https:\/\/support.google.com\/analytics\/answer\/9304153\"> <span style=\"font-weight: 400;\">initial GA4 setup<\/span><\/a><span style=\"font-weight: 400;\"> has taken place. You will be able to see data about these events without needing to take any additional steps.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are many<\/span><a href=\"https:\/\/support.google.com\/analytics\/answer\/9234069?sjid=3810361334324097955-AP\"> <span style=\"font-weight: 400;\">automatically collected events<\/span><\/a><span style=\"font-weight: 400;\"> in GA4, allowing many users to have their analytics needs met without setting up many custom events.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Examples of automatically collected events include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ad_click<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">ad_impression<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">click<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">form_submit<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">page_view<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">view_search_results<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400;\">Enhanced measurement events<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Enabling enhanced measurement events requires slightly more work than automatically collected events.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Examples of events that can have enhanced measurements include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">scroll<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">click<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">page_view<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">file_download<\/span><\/li>\n<\/ul>\n<h4><span style=\"font-weight: 400;\">How to enable enhanced measure events<\/span><\/h4>\n<p><span style=\"font-weight: 400;\">To enable enhanced measurement events, take the following steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the sidebar, press Admin<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Under &#8220;Data collection and modification&#8221;, click Data streams<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click the name of the desired data stream<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Under enhanced management, you can slide the switch to On to enable all options<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">You can also click the Settings symbol to select individual options<\/span><\/li>\n<\/ol>\n<h3><span style=\"font-weight: 400;\">Recommended events<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Recommended events are events that must be specifically implemented. However, because they are commonplace, they have predefined names and parameters within GA4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">They can therefore be easily implemented with the additional necessary context. You can see a full list of recommended events and implementation information on<\/span><a href=\"https:\/\/support.google.com\/analytics\/answer\/9267735?hl=en\"> <span style=\"font-weight: 400;\">Google&#8217;s website<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Some examples of recommended events include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">generate_lead<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">login<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">purchase<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">add_payment_info<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">add_shipping_info<\/span><\/li>\n<\/ul>\n<h3><span style=\"font-weight: 400;\">Custom events<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Finally, there are totally custom events. You must create and implement these events yourself.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You should only create custom events where no other type of event will suit your purpose. Custom events take much more effort to implement than other kinds of events, with more room for error if you implement them imperfectly.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Additionally, custom events do not appear in most standard GA4 reports. You&#8217;ll have to set up custom reports to analyse your custom events.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-30px|auto||auto||&#8221; custom_padding=&#8221;9px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;g3&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">How to set up events in Google Analytics 4: Step-by-step guide<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Use the following steps to set up tracking for recommended and custom events in GA4. With an understanding of this process, you&#8217;ll find it simple to track the events you need to and reap all the benefits.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">How to set up GA4 event tracking with a data layer<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Firstly, let&#8217;s go over the process of GA4 event tracking where a data layer is in use on the website. This enables you to create events and triggers that rely on variables within the data layer.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This helps to simplify the event tracking process and ensures all your tags are drawing on a single source of data.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Note that these steps also cover this process using Google Tag Manager.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">1. Create a GA4 event tag<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go into Google Tag Manager.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Tags, then New.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create and enter the name of your event.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">2. Configure your GA4 event tag<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Select Google Analytics: GA4 event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter your GA4 Measurement ID in the relevant field.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the event name in the relevant field. If you want to use a recommended event, enter the name of the desired recommended event. These events come with predefined parameters. For custom events, simply enter the best, most descriptive name for the event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the Event Parameters section.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Add your desired parameters, beginning with an appropriate name in the left field, such as &#8220;user_email&#8221; or &#8220;product_id&#8221;.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the right field, select the data layer variable with the relevant information.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">3. Create your trigger<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In your GA4 event tag, click the Triggering box.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click the + symbol to add a new trigger.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter an appropriate name for the trigger.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In the event name field, enter the name of the data layer event you want to trigger the tag.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Save your changes.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">4. Preview and debug<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Preview.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to a page on your website where you can trigger relevant events.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Trigger the relevant events. In the GTM preview pane, check that the correct event data is being captured and sent to GA4 at the right time.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">5. Publish<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once you have thoroughly previewed and debugged, exit the preview mode.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Submit in Google Tag Manager to publish the setup.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a version name and description for documentation.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Publish.<\/span><\/li>\n<\/ol>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-25px|auto||auto||&#8221; custom_padding=&#8221;11px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;g4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h3><span style=\"font-weight: 400;\">How to set up GA4 event tracking without a data layer<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">There are several key differences for setting up GA4 events without the use of a data layer. Most significantly, you must manually enter the parameters you want to track, and go through a longer process to configure your triggers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Nonetheless, it is perfectly possible to conduct GA4 event tracking setup without a data layer.<\/span><\/p>\n<h4><span style=\"font-weight: 400;\">1. Create a GA4 event tag<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go into Google Tag Manager.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Tags, then New.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create and enter the name of your event.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">2. Configure your GA4 event tag<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Select Google Analytics: GA4 event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter your GA4 Measurement ID in the relevant field.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the event name in the relevant field. If you want to use a recommended event, enter the name of the desired recommended event. For custom events, simply enter the best, most descriptive name for the event.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter the Event Parameters section.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Manually enter the parameters you want to track. You can use Google&#8217;s<\/span><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/13438771\"> <span style=\"font-weight: 400;\">pre-defined parameters<\/span><\/a><span style=\"font-weight: 400;\">, including currency, country, discount and more.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Alternatively, you can create your own custom parameters. To do this, type a name for the event in the Name field.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Then, input static or dynamic values in the right field. For instance, if you want to track the &#8220;user_type&#8221;, you could enter &#8220;new_customer&#8221; as the static value.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Without the use of a data layer, you can input dynamic variables with JavaScript variables. You can also make use of built-in GTM variables, such as Page URL and Click Text.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">3. Create your trigger<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">In your GA4 event tag, click the Triggering box.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click the + symbol to add a new trigger.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Enter an appropriate name for the trigger.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click the Trigger Configuration box.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Set up the trigger type with the user interactions you want to track. For instance, for Page View triggers, you can choose for the trigger to fire on All Page Views or Some Page Views.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">If you want the trigger to fire every time a page is viewed, simply select All Page Views.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">If you want the trigger to fire on select page views, select Some Page Views and set the conditions such as Page URL, Page Path and Page Title. This is done with matching rules like &#8220;contains&#8221;, &#8220;equals&#8221; and &#8220;starts with&#8221;.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">For example, if you only want your trigger to fire on the homepage, your condition could be &#8220;Page URL equals https:\/\/www.website.com&#8221;.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">4. Preview and debug<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Preview.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to a page on your website where you can trigger relevant events.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Trigger the relevant events. In the GTM preview pane, check that the correct event data is being captured and sent to GA4 at the right time.<\/span><\/li>\n<\/ol>\n<h4><span style=\"font-weight: 400;\">5. Publish<\/span><\/h4>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Once you have thoroughly previewed and debugged, exit the preview mode.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Submit in Google Tag Manager to publish the setup.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Create a version name and description for documentation.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click Publish.<\/span><\/li>\n<\/ol>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;g6&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">How to see your events in GA4<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now that you&#8217;ve completed the task of setting up your Google Analytics event tracking, how can you see the fruits of your labour?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Your events and their parameters can be seen in the Realtime and DebugView reports. These reports offer real-time data as events are triggered on your website.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can also access the Events tab to see data about all tracked events on your site. Of course, you add data acquired from your event tracking to your own custom reports to build your understanding of how customers are using your website.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Complying with the GDPR and CCPA while tracking events in GA4<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">When tracking events in GA4, it is crucially important that you take the necessary steps to comply with data privacy regulations around the globe.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Remember that you must comply with any regulations in place in any jurisdiction from which your website can be considered to operate. That means that you should comply with regulations from anywhere someone can access your site.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The European Union&#8217;s General Data Protection Regulation and the California Consumer Privacy Act are typically regarded as the most significant in the world. This is because they are 2 of the strictest data privacy regulations in the world, and they both apply to large jurisdictions.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Tracking events with GA4 and GTM can result in the collection of personally identifiable information (PII). Examples of PII you may potentially collect while tracking events include:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Name<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Email address<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Location information<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Address<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Some of the key principles of data privacy regulation around the world are:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PII must be stored securely and be protected from internal and external threats.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The minimum amount of data for business operations should be collected.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Customers have the right to know what data of theirs is being collected and retained by a business.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">You can use DataTrue to help fulfil these obligations while tracking events in GA4. DataTrue&#8217;s privacy and compliance toolset includes<\/span><a href=\"https:\/\/datatrue.com\/en\/sensitive-data-alerts-pii\/\"> <span style=\"font-weight: 400;\">sensitive data leak alerts<\/span><\/a><span style=\"font-weight: 400;\"> to let you know if you&#8217;re at risk of sharing PII. It also includes<\/span><a href=\"https:\/\/datatrue.com\/en\/privacy-policy-audits\/\"> <span style=\"font-weight: 400;\">cookie policy audits<\/span><\/a><span style=\"font-weight: 400;\"> for a holistic approach to data privacy regulation compliance.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;g7&#8243; _builder_version=&#8221;4.17.3&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2><span style=\"font-weight: 400;\">Use DataTrue to manage your tags and data layer<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Setting up GA4 and GTM to track events might seem relatively straightforward, but there&#8217;s plenty that can go wrong. DataTrue is the perfect tool to ensure the data you collect is accurate and secure.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DataTrue includes<\/span><a href=\"https:\/\/datatrue.com\/en\/automated-data-layer-testing\/\"> <span style=\"font-weight: 400;\">automated data layer testing<\/span><\/a><span style=\"font-weight: 400;\"> for ongoing quality control. This ensures that the variables your tags rely on are accurate and reliable.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DataTrue also offers an extensive tag audit toolset to ensure the overall health of your tags. Features of DataTrue&#8217;s comprehensive<\/span><a href=\"https:\/\/datatrue.com\/en\/web-analytics-testing\/\"> <span style=\"font-weight: 400;\">web analytics testing<\/span><\/a><span style=\"font-weight: 400;\"> include simulation tests, coverage tests and validation maps.<\/span><\/p>\n<p><a href=\"https:\/\/datatrue.zohobookings.com\/#\/customer\/demo\"><span style=\"font-weight: 400;\">Book a demo with DataTrue<\/span><\/a><span style=\"font-weight: 400;\"> today and discover the ways it can take your web analytics to the next level.<\/span><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guide to GA4 Event Tracking Set Up How to Set Up Event Tracking in Google Analytics 4How to Set Up Event Tracking in Google Analytics 4 Event tracking is one of the most important elements of any analytics software. By building an understanding of how customers interact with your website, you can facilitate superior user [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-226355","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GA4 Event Tracking Setup: Custom Events &amp; GTM Guide | DataTrue<\/title>\n<meta name=\"description\" content=\"How to set up GA4 event tracking in Google Tag Manager. Step-by-step guide for custom events, conversions, and validating your setup is firing correctly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GA4 Event Tracking Setup: Custom Events &amp; GTM Guide | DataTrue\" \/>\n<meta property=\"og:description\" content=\"How to set up GA4 event tracking in Google Tag Manager. Step-by-step guide for custom events, conversions, and validating your setup is firing correctly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/\" \/>\n<meta property=\"og:site_name\" content=\"DataTrue\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/datatruedigital\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-24T04:45:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1328\" \/>\n\t<meta property=\"og:image:height\" content=\"208\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@data_true\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-event-tracking-set-up\\\/\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-event-tracking-set-up\\\/\",\"name\":\"GA4 Event Tracking Setup: Custom Events & GTM Guide | DataTrue\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#website\"},\"datePublished\":\"2024-08-02T19:13:43+00:00\",\"dateModified\":\"2026-04-24T04:45:35+00:00\",\"description\":\"How to set up GA4 event tracking in Google Tag Manager. Step-by-step guide for custom events, conversions, and validating your setup is firing correctly.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-event-tracking-set-up\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-event-tracking-set-up\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/ga4-event-tracking-set-up\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GA4 Event Tracking Setup: Custom Events &amp; GTM Guide | DataTrue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\",\"name\":\"DataTrue\",\"description\":\"Web Analytics Quality Assurance\",\"publisher\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/datatrue.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#organization\",\"name\":\"DataTrue\",\"url\":\"https:\\\/\\\/datatrue.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/datatrue.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/New-DT-Logo.png\",\"contentUrl\":\"https:\\\/\\\/datatrue.com\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/New-DT-Logo.png\",\"width\":1328,\"height\":208,\"caption\":\"DataTrue\"},\"image\":{\"@id\":\"https:\\\/\\\/datatrue.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/datatruedigital\\\/\",\"https:\\\/\\\/x.com\\\/data_true\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/Datatrue\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GA4 Event Tracking Setup: Custom Events & GTM Guide | DataTrue","description":"How to set up GA4 event tracking in Google Tag Manager. Step-by-step guide for custom events, conversions, and validating your setup is firing correctly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/","og_locale":"en_US","og_type":"article","og_title":"GA4 Event Tracking Setup: Custom Events & GTM Guide | DataTrue","og_description":"How to set up GA4 event tracking in Google Tag Manager. Step-by-step guide for custom events, conversions, and validating your setup is firing correctly.","og_url":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/","og_site_name":"DataTrue","article_publisher":"https:\/\/www.facebook.com\/datatruedigital\/","article_modified_time":"2026-04-24T04:45:35+00:00","og_image":[{"width":1328,"height":208,"url":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@data_true","twitter_misc":{"Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/","url":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/","name":"GA4 Event Tracking Setup: Custom Events & GTM Guide | DataTrue","isPartOf":{"@id":"https:\/\/datatrue.com\/en\/#website"},"datePublished":"2024-08-02T19:13:43+00:00","dateModified":"2026-04-24T04:45:35+00:00","description":"How to set up GA4 event tracking in Google Tag Manager. Step-by-step guide for custom events, conversions, and validating your setup is firing correctly.","breadcrumb":{"@id":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/datatrue.com\/en\/ga4-event-tracking-set-up\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/datatrue.com\/en\/"},{"@type":"ListItem","position":2,"name":"GA4 Event Tracking Setup: Custom Events &amp; GTM Guide | DataTrue"}]},{"@type":"WebSite","@id":"https:\/\/datatrue.com\/en\/#website","url":"https:\/\/datatrue.com\/en\/","name":"DataTrue","description":"Web Analytics Quality Assurance","publisher":{"@id":"https:\/\/datatrue.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/datatrue.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/datatrue.com\/en\/#organization","name":"DataTrue","url":"https:\/\/datatrue.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/datatrue.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","contentUrl":"https:\/\/datatrue.com\/wp-content\/uploads\/2022\/04\/New-DT-Logo.png","width":1328,"height":208,"caption":"DataTrue"},"image":{"@id":"https:\/\/datatrue.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/datatruedigital\/","https:\/\/x.com\/data_true","https:\/\/www.youtube.com\/c\/Datatrue"]}]}},"_links":{"self":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/pages\/226355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/comments?post=226355"}],"version-history":[{"count":0,"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/pages\/226355\/revisions"}],"wp:attachment":[{"href":"https:\/\/datatrue.com\/en\/wp-json\/wp\/v2\/media?parent=226355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}