Google Analytics Begrippenlijst

Add Google Analytics to Divi

Image of Iron Brands

Gepubliceerd op 26 mrt 2024 door Iron Brands

Deze inhoud is nog niet vertaald in het Nederlands. Hieronder staat de Engelse versie.

After designing your pretty website with Divi, you will want to monitor its traffic and performance- and Google Analytics can be of great help. This blog will explain you how to integrate GA with your website step by step.

Let's dive in!

  1. Set Up Google Analytics
  2. Integrate Google Analytics with Your Divi Website
  3. Verify the Integration
  4. Final Thoughts

Before we dig in I want to show you something. I promise it's worth it...

Google Analytics is great, but also complex and a bit clunky. If you just want a straightforward dashboard with the insights you need, GA is not a great place to start. Additionally, Google doesn't care about privacy and GA requires an annoying cookie banner.

That's why I built Simple Analytics, a privacy-friendly and simple analytics tool - no personal data, no cookies, just the insights you need in a straightforward dashboard.

Here is how it looks vs GA. Feel free to check our live analytics to get an idea for your project. (It is free btw)

All right, enough about us. Now let's get into answering your question!

Can you spot the difference between the dashboards?

Set Up Google Analytics

If you don’t already have a Google Analytics account set up for your website, you'll need to do that first. Here’s how:

  • Create a Google Analytics Account: Go to the Google Analytics website and sign in with your Google account. If you don't have one, you'll need to create it.
  • Set Up a New Property: Follow the on-screen instructions to create a new GA4 property. Select "Web" as your platform and provide your website's details.
  • Obtain Your Measurement ID: Once your property is configured, you will be given a Measurement ID (formatted as "G-XXXXXXXXXX"). Note down this ID, as it's necessary for integrating GA with your Divi website.
  • (Optional) Set Up Extra Properties: each GA property has a different Measurement ID. To track multiple websites, set up a different property for each website and use the correspondent ID.

Integrate Google Analytics with Your Divi Website

Adding Google Analytics to your Divi website is straightforward because Divi makes it easy to add custom scripts to your site's head and body tags. Here’s how to add your GA tracking code:

  • Access Your WordPress Dashboard: Log into your WordPress admin area.
  • Navigate to Divi Theme Options: On the left-hand sidebar, hover over "Divi," and then click on "Theme Options."
  • Open the Integration Tab: At the top of the Theme Options page, click on the "Integration" tab. Here you will find fields for adding custom code to the head and body tags of your pages.
  • Paste Your GA Tracking Code: In the "Add code to the < head > of your blog" box, paste the entire Google Analytics tracking code snippet provided by GA. This snippet should include your Measurement ID and will look similar to a JavaScript <script> tag.
  • Save Changes: Click the "Save Changes" button at the bottom of the Theme Options page to apply your changes.

Verify the Integration

After adding your Google Analytics tracking code to your Divi website, it's essential to ensure it's working correctly:

  • Visit Your Website: Open your website in a browser to generate some traffic.
  • Check Google Analytics: Log into your Google Analytics account and go to the "Realtime" report to see if your visit is being tracked. If you see active users on your site (including yourself), the integration is working.

Final Thoughts

Adding Google Analytics to your website can give you great insights. However, ask yourself: is Google Analytics the right tool for you?

GA is an overpowered solution for straightforward analytics. If you're looking for a simple and intuitive dashboard with the insights you need, there are better alternatives. Yes, I’m talking about my own product (Simple Analytics), but there are others out there as well.

I hated using Google Analytics for my projects. It's clunky, there are hundreds of dashboards and it doesn't look appealing. Also Google doesn't care about privacy or ethics. That's why I decided to build my own and more intuitive web analytics tool.

If this resonates with you, feel free to give Simple Analytics a spin. You just need to add the script to your website and off you go. This takes about one minute- and there is a free version as well!

Enjoy!