Google Analytics Glossaire

Add Google Analytics to Elementor

Image of Iron Brands

Publié le 29 mars 2024 et modifié le 7 mai 2024 par Iron Brands

Ce contenu n'est pas encore traduit en français. Vous trouverez ci-dessous la version anglaise.

After you have build a pretty website with Elementor, you will want to monitor and optimize its performance with robust web analytics- and Google Analytics can help. This blog will explain how to integrate Google Analytics, step by step.

Let's dive in!

  1. Set Up Google Analytics
  2. Add Google Analytics to Your Elementor Website
    1. Using Elementor's Custom Code Feature (Pro Version Only)
    2. Using a WordPress Plugin
  3. SVerify the Integration
  4. Final Thoughts

Before we dig in you need to know that Google Analytics is complex and a bit clunky. There are other options that give you the same insights in a slick and straightforward dashboard.

Simple Analytics is one of them. A privacy-friendly and simple analytics tool - just the insights you need in a straightforward dashboard. (And its also free yes).

Can you spot the difference between the dashboards?

All right, now let's get into answering your question!

Set Up Google Analytics

If you haven't already, the first step is to set up a Google Analytics account and create a property for your website. Here’s how:

  • Create a Google Analytics Account: Visit the Google Analytics website and sign in with your Google account. If you don't have an account, you'll need to create one.
  • Create a New Property: Follow the on-screen instructions to set up a new GA4 property, selecting "Web" as your platform.
  • Obtain Your Tracking Code: Inspect your property to find your Tracking Code. You will need this code for the next steps.
  • (Optional) Create Extra Properties: If you want to monitor multiple websites, create a new property for each website and extract its own tracking code. This prevents Google Analytics from conflating the data from different websites.

Add Google Analytics to Your Elementor Website

Integrating Google Analytics with your Elementor website can be done in a few ways, depending on your preference and the specifics of your site setup. Here are two common methods:

Using Elementor's Custom Code Feature (Pro Version Only)

If you're using Elementor Pro, you can easily add your GA tracking code directly to your site:

  • Navigate to Theme Settings: From your WordPress dashboard, go to Elementor > Theme Builder.
  • Access Site Settings: Click on "Site Settings" and then "Custom Code."
  • Add Your GA Tracking Code: Click on "Add Custom Code," and paste your Google Analytics tracking code in the provided field. Be sure to place it in the head section as recommended by Google.
  • Publish Your Changes: Give your custom code a name for future reference, and click "Publish" to apply the changes.

Using a WordPress Plugin

For those using the free version of Elementor or who prefer not to use Elementor Pro's Custom Code feature, a WordPress plugin can be used:

  • Choose a Plugin: There are several plugins available that facilitate Google Analytics integration. "Insert Headers and Footers" is a popular choice.
  • Install and Activate the Plugin: From your WordPress dashboard, go to Plugins > Add New, search for your chosen plugin, install it, and then activate it.
  • Insert Your GA Tracking Code: Navigate to the plugin's settings page and paste your GA tracking code into the designated field for scripts in the head section.
  • Save Your Changes: Ensure you save your changes to start tracking your site with Google Analytics.

SVerify the Integration

After adding the Google Analytics tracking code to your Elementor website, it's crucial to ensure it's working correctly:

  • Check Realtime Reports in GA: Visit your website, then head to your Google Analytics account and view the Realtime report to see if your activity is being tracked.
  • Use Google Tag Assistant: Google Tag Assistant is a Chrome extension that can help you verify if Google Analytics is correctly implemented on your site.

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.

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

Enjoy!