How to Add Google Analytics to WordPress (Step-by-Step Guide)

How to Add Google Analytics to Your WordPress Site

Do you want to know how your visitors interact with your website? When you add Google Analytics to WordPress, you can see how people find your site, which posts and pages they view, which devices they use to view your site, and much more.

But when it comes to setting up Google Analytics, it’s not very straightforward for beginners. To properly configure Analytics, you might need coding skills. This can be tricky, especially for new users.

However, there’s an easier way for WordPress users, thanks to ExactMetrics. It’s the best premium WordPress Analytics plugin that lets you configure Google Analytics without any coding.

In this article, we’ll guide you on how to add Google Analytics to your WordPress site using ExactMetrics.

ExactMetrics is the best WordPress Analytics plugin. Get it for free!

How to Add Google Analytics to WordPress

Step 1: Download ExactMetrics

ExactMetrics is the best premium WordPress analytics plugin. With ExactMetrics, there’s a whole list of things you can set up and monitor in Google Analytics and your WordPress dashboard without touching a line of code.

ExactMetrics Google Analytics Plugin

You get advanced tracking right out of the box with an extremely user-friendly interface and Google Analytics reports right inside your WordPress dashboard.

Here are some of ExactMetrics’ most popular features:

To start, head to the Pricing page and choose the level that’s right for your site and your goals.

Then, to install the plugin, go to the ExactMetrics website and log in to your account. Once logged in, go to the Downloads tab from your account area.

download-exact-metrics-account

Now click on Download ExactMetrics and download the ZIP file of the plugin.

exactmetrics-downloads-page

Step 2: Create a Google Analytics Account

The first step is to create a Google account if you don’t already have one. To start, go to the Google Analytics website and press Sign in to Analytics or the Start for free button.

Google-Analytics-Sign-Up-Screen

Enter your existing Google email address or phone number to log in. Or, you can click on Create account to create a new account.

create-an-account-for-ga

Once you’re logged in to your Google account, the next step is to sign up for Google Analytics. Click Start measuring to get started.

Google Analytics Welcome Page

Now, enter an Account name for your Google Analytics account. Make sure you’ve checked all the options listed under Account Data Sharing Settings. Then scroll down and click Next.

Create an account google analytics GA4

Next, you’ll enter a name for your Property. Most people choose the name of their business or website. Choose your time zone and currency, then click Next.

google analytics create a property GA4

The third step in creating a Google Analytics account is to provide some business information. Choose your category and business size. Click Next.

google analytics setup business details GA4

 

Lastly, you’ll choose your business objectives. In order to get all of the Google Analytics reports populated in your account, we recommend choosing Get baseline reports.

Google analytics business objectives GA4

Once you’ve selected, click Create.

That’s it! Your Google Analytics account is now up and running. Next, we’ll show you how to add Google Analytics to your WordPress website.

Step 3: Install ExactMetrics on Your Website

Head to the WordPress site where you want to install ExactMetrics and log in.

login-to-wordpress

Then navigate to Plugins and click Add New. At the top, you’ll see an option to Upload Plugin. Click on it to install ExactMetrics on your website.

upload-a-plugin

Next, click Choose File and go to the folder where you downloaded the ZIP file of ExactMetrics in Step 1. Then, select the ZIP file and click Install Now to upload the plugin.

install-plugin-zip-file

After the plugin finishes installing, click Activate Plugin to set up ExactMetrics.

activate-plugin-exactmetrics

Step 4: Open the Setup Wizard

Now that ExactMetrics is successfully installed on your website, you can connect it to your Google Analytics account.

ExactMetrics offers a simple setup wizard that takes you through each step and makes sure your Google Analytics is correctly set up on your site.

To start, click Launch Setup Wizard.

ExactMetrics Setup Wizard - Add Google Analytics to WordPress

First, you’ll have to select a website type. You can choose from 3 options that best describe your site: Business Website, Publisher (Blog), or Ecommerce. Based on your choice, the wizard will offer additional settings for tracking your site’s performance.

Once you’ve selected an option, click Save and Continue.

select-a-site-category

The wizard will now prompt you to enter your license key. You can find it in your email purchase receipt or inside your account area on the ExactMetrics website. Once you’ve entered it, click the Connect ExactMetrics button:

ExactMetrics license key and GA connection

Step 5: Connect Google Analytics

Next, the setup wizard will ask you to connect your Google account. Select the account that contains your Google Analytics profile.

sign-in-with-google

After selecting your Google account, you’ll have to give permission to ExactMetrics. It’s important you allow all the permissions or the plugin won’t function properly.

Make sure all the options are selected and then click Allow.

accounts-google-signin-oauth-consent-summary

Now, you’ll have to select a profile to finish connecting your Google Analytics. If you have multiple websites connected to your Google Analytics account, make sure to select the right website property for tracking.

Complete GA4 connection in ExactMetrics

Once you’ve selected the correct profile, you can click on Complete Connection.

ExactMetrics will then offer some recommended settings based on the website type you selected earlier.

For instance, it will enable Events Tracking and Enhanced Link Attribution by default. The plugin will also track common file type downloads by default.

complete-the-setup-wizard

If you scroll down, you’ll see more settings. These include Affiliate link tracking, which already has two paths set, but you can add more to affiliate links to track in WordPress.

You can also select the user roles that can view ExactMetrics reports in WordPress.

Once you’re satisfied with the settings, click Save and continue.

In the next step, ExactMetrics will recommend tracking features, addons, and helpful plugins. Choose the ones you want for your site and click Continue.

EM Onboarding Tracking Options

In the final step in the setup wizard, click Finish Setup & Exit Wizard.

That’s it! You’ve successfully connected Google Analytics to your WordPress website.

Do remember that it could take up to 24 hours for the plugin to gather the data and show you reports in your WordPress dashboard.

Step 6: Adjust Google Analytics Settings

Turn off Enhanced Measurement

ExactMetrics automatically creates your data stream in Google Analytics, but if you created your own already, you’ll need to turn off Enhanced Measurement. In your Analytics account, go to Admin » Data Streams and click on your data stream.

GA4 data streams

Then, click to toggle off Enhanced measurement.

turn off enhanced measurement GA4

After you click the switch, you’ll see a popup asking if you want to turn it off. Click Turn off.

turn off enhanced measurement popup

ExactMetrics adds lots of custom, enhanced tracking, and leaving this setting turned on in Google Analytics can actually give you skewed, incorrect data. So, make sure this setting is turned off!

Change Data Retention

Google Analytics will set your event data retention to 2 months by default. If you want to use your data in custom reports beyond 2 months, which most people do, you need to change this.

Go to Admin » Data Settings » Data Retention:

GA4 data retention

Use the dropdown menu to change the setting to 14 months and press the Save button.

That’s it! You’ve successfully configured and added Google Analytics to WordPress!

Step 7: View Your Google Analytics Reports

Now that you’ve completed the setup process for adding Google Analytics, you’ll be able to start viewing your site’s reports in WordPress (after a few hours – up to 24).

Just head to your WordPress dashboard and click on ExactMetrics » Reports (You can also view a quick summary in ExactMetrics’ dashboard widget).

ExactMetrics Overview Report Engagement Analytics

You can use the tabs at the top to view all the other reports available. Check out: How to Find Your Google Analytics Reports in ExactMetrics for more information about your new Google Analytics reports inside ExactMetrics.

We hope you liked our article on how to add Google Analytics to your WordPress site. If this guide was useful, then you might also want to read our article on How to Track Google Analytics Keywords (Step-by-Step).

And don’t forget to follow us on Twitter and Facebook to get to know the latest guides on Google Analytics and WordPress.

Want to Try ExactMetrics for Free?

Enter the URL of Your WordPress website to install ExactMetrics Lite.

Comments

  1. ExactMetrics has made viewing my Google Search Console reports easier and less-confusing for me.

    Thanks for this article.

  2. Thanks for this – adding anything Google is frustrating and time consuming so it’s good to have the steps laid out. It makes it easier to start using ExactMetrics!

  3. I love the idea behind Google Analytics. You all make it possible for creators to understand what their viewers enjoy seeing most from them. Also, thank you for meticulously reviewing the post before publishing it and providing enough detail.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.