Google Analytics in Elementor

How to Add Google Analytics to Elementor Without Using Plugins – Easy Method

By: Hugo Makes

Including Google Analytics 4 (GA4) on your Elementor site can look pretty daunting. Sure, there are tons of plugins out there that can help, but throwing more plugins into the mix can bog down your site’s speed and possibly create new security issues. That’s why I’m gonna show you how to get Google Analytics up and running in Elementor in just a few easy steps, with no need for any extra add-ons or plugins. You’ll be set up and ready to go in no time!

Please note that the Custom Code feature in Elementor requires that you upgrade to Elementor Pro. If you are uncertain about which version of Elementor Pro to choose, feel free to check out the Elementor Pro pricing guide.

Prefer to Watch?

Step 1: Make Sure You Have Google Analytics Setup

First things first, you gotta make sure you’ve got Elementor all set up and that you’ve got your Google Analytics account good to go, complete with your GA4 code. If you don’t have a Google Analytics 4 account yet, you can sign up for free over at https://analytics.google.com/analytics/web/.

google analytics elementor code
Choose your Google Analytics Account and Property
google analytics elementor code 2
Navigate to the bottom after you choose your Stream.
Copy and Paste Your Google Analytics Code.
Copy and Paste Your Google Analytics Code.

Step 2: Navigate to Custom Code in Elementor

Click on “Elementor” on your WordPress sidebar to access the Elementor options. Then, click on “Custom Code”.

Elementor's Custom Code Screen
Elementor’s Custom Code Screen

Step 3: Add Your Google Analytics 4 Code

  • Once in the Custom Code section, click on “Add New” button near the top of the page.
  • For easy reference, type in the Title for the code. In our example, we’ll type GA4.
  • Choose the Head option from the Location dropdown menu.
  • Copy and Paste your GA4 code in the code area on the page.
  • Press the “Publish” button.
  • Select the appropriate display condition for your use-case. In our example, we’ll just choose “Entire Site”
Elementor Custom Code Detail Screen
Copy and Paste Your Google Analytics 4 Code

Step 4: Verify Your Google Analytics Installation

google analytics elementor verify installation
Verify Your Google Analytics Installation
  • Go to your Google Analytics account and select the website for which you want to check the tracking code.
  • Once you’ve selected the website, click on the “Real-time” tab on the left-hand side of the screen.
  • On the “Real-time” page, open your website in a new tab or window.
  • Go back to the Google Analytics tab and check if there is any activity showing up under the “Overview” section. If you see activity such as pageviews, then your Google Analytics code is working.
  • If you don’t see any activity, check that you have copied the code correctly and that it is installed on all pages of your website.

Boom, there you have it! You can now make the most out of Google Analytics in Elementor without any extra plugins or add-ons.

Hugo Makes
Hugo Makes

Hugo Makes is the co-founder of an award winning design and digital marketing agency. He has been developing and marketing websites since 1998.

Found this article useful? Share it.

Related Posts