Close Menu

GA4: How to Set Up Events (Intermediate)

Here’s a step-by-step guide to setting up advanced event tracking in GA4 and Google Tag Manager, including tracking intra-site movement between pages using GA4 and creating a custom event:

  1. Start by setting up Google Analytics 4 (GA4) and Google Tag Manager (GTM) for your website.
  2. Open the debug view in GA4 to test and monitor events. Go to “Configure” and select “Debug View.” This view allows you to see the events triggered on your site.
  3. Install the Google Analytics Debugger extension from the Chrome Web Store. This extension provides detailed information about the events triggered on your site.
  4. Refresh the page to see the events in the debug view. You should see the events being triggered by conversion events.
  5. Set up the intra-site movement tracking using GA4. Create a new event in GA4 and name it something like “analytics_test_conversion.”
  6. Define the event conditions for the intra-site movement tracking. Set the event name to “Page view” and add another condition for “Page referrer” with the value of the original page link.
  7. Create the event and go back to the debug view. Navigate from the original page to another page and check if the event is triggered in the debug view.
  8. Next, set up button click tracking using Google Tag Manager (GTM) for more granular tracking. Create a new trigger in GTM to track the button clicks.
  9. Set the trigger type to “Click” and define the specific button element or CSS class that you want to track.
  10. Create a new GA4 tag in GTM to send the button click event to GA4. Configure the tag to send the event data to GA4 when the trigger is activated.
  11. Save and publish the changes in GTM.
  12. Test the button click tracking by clicking on the specified button. Use the debug view and Google Analytics Debugger extension to verify if the event is triggered and sent to GA4.
  13. Once the events are working correctly, you can mark the conversion event as a conversion in GA4. Go to the conversions section in GA4 and mark the event as a conversion event.

By following these steps, you can set up advanced event tracking in GA4 and GTM, including tracking intra-site movement between pages and button clicks. Debugging with the debug view and the Google Analytics Debugger extension will help ensure that the events are triggered correctly.

If you have any further questions, feel free to ask.