Summary

Google Analytics is a powerful tool for understanding your website’s performance and user behavior. Setting up tracking correctly and configuring key events can provide actionable insights to grow your online presence. In this guide, we’ll walk you through the simple steps to set up Google Analytics tracking and highlight the main events you should create to maximize its value.

Why Use Google Analytics?


Google Analytics helps you track visitor data, monitor engagement, and optimize your website. From page views to conversions, it offers a clear picture of how users interact with your site. Setting it up is easier than you think, and creating events allows you to track specific actions, like button clicks or form submissions.

Step-by-Step Guide to Set Up Google Analytics Tracking


Follow these steps to get Google Analytics up and running on your website quickly.

1. Create a Google Analytics Account


• Visit analytics.google.com and sign in with your Google account.
• Click “Start measuring” and set up an account name (e.g., your business name).
• Create a property for your website by entering its name, URL, industry, and time zone.
• Choose your data-sharing settings and accept the terms.

2. Get Your Tracking Code


• After setting up your property, Google Analytics will create a web data stream with a Measurement ID (G-XXXXXXX).
• In the data stream, open “View tag instructions” to get the Google tag (gtag.js) snippet, or use Google Tag Manager.
• Copy this code—it’s what connects your website to Google Analytics.

3. Add the Tracking Code to Your Website


• WordPress Users: Use a plugin like “MonsterInsights” or “Site Kit by Google” for easy setup. Alternatively, add the snippet with a header-code plugin or a child theme (not the parent theme’s header.php, which is overwritten on update).
• Other Platforms: Add the tracking code to the <head> section of every page on your site. If you use a CMS like Shopify or Wix, look for a Google Analytics integration in the settings.
• Verify the code is working by checking the “Real-Time” report in Google Analytics.

4. Set Up Events and Key Events (GA4)


In GA4, events are the primary way to track user interactions. Some events, like page views, are tracked automatically. With enhanced measurement turned on, GA4 also collects scrolls, outbound clicks, site search, video engagement and file downloads without extra code. Custom events cover the rest. Mark the events that matter most as key events.


Main Events to Create in Google Analytics

Events in GA4 help you track specific actions users take on your site. By setting up key events, including e-commerce actions and funnel tracking, you can measure meaningful interactions and optimize your conversion funnel. Below is a comprehensive list of events to set up, including critical e-commerce steps and additional engagement metrics to give you a complete picture of user behavior.

1. Button Clicks

2. Form Submissions

3. Video Plays

4. Scroll Depth

5. File Downloads

6. Add to Cart

7. Remove from Cart

8. Begin Checkout

9. Purchase

10. Funnel Analysis (No New Event Needed)

11. Outbound Link Clicks

12. Search Queries

13. Etc, etc, etc

Add any other event that matters for your business.

Another example could be a exchange, refund or return of a product from your e-commerce website.


Tips for Success


Conclusion


Setting up Google Analytics tracking is straightforward, and creating key events unlocks valuable insights into user behavior. By tracking key interactions and the ecommerce funnel (view_item → add_to_cart → begin_checkout → purchase), you can measure what matters most to your business. Follow the steps above, test your setup, and start leveraging data to improve your website’s performance today!

Related reading

Not sure your own tracking is right?

Book a call Or start with the free analytics audit →