How to Add Google Analytics to WordPress

Written by Coursera Staff • Updated on

Learn how to add Google Analytics to WordPress to gain access to insights about how customers are interacting on your website.

[Featured Image] Two marketers stand in their office and look at a tablet screen as they add Google Analytics to WordPress.

Key takeaways

To add Google Analytics to WordPress, go to Tools > Marketing > Traffic in your WordPress account and enter your Google Analytics Measurement ID.

  • Create a Google Analytics account, select a property and data stream, and get a measurement ID with Site Kit to begin.

  • It is common to notice some discrepancies between the data you collect with Google Analytics and the data WordPress collects.

  • You can collect and analyze WordPress data with Google Analytics to understand how customers engage with your website, blog, or e-commerce platform.

Learn how to add Google Analytics to WordPress to begin collecting user data. If you’re ready to grow your career in digital marketing, consider the Google Digital Marketing & E-commerce Professional Certificate. Beginner-friendly, this program offers guidance on attracting customers through digital marketing channels, measuring marketing performance through analytics, growing customer loyalty, and more. Upon completion, you’ll earn a shareable certificate to display on your resume or LinkedIn profile.

How to add Google Analytics to WordPress website

1. Create a Google Analytics account.

If you have not already signed up with Google Analytics, you must do that first. Once you’ve signed up or signed in, you’ll need to create an account for your website or blog. You can skip step two if you already have a Google Analytics account. To create a Google Analytics account, sign in to Google Analytics and go to the Admin tab, which you can find by clicking the gear icon at the bottom left of the page. 

TT2023039 add google analytics to wordpress step 1a
TT2023039 add google analytics to wordpress step 1b

2. Create a property and add company information. 

In your Google Analytics account, click the Create icon and select Property. 

TT2023039 add google analytics to wordpress step 2

You will add company information here, such as the time zone, currency, name, size, and how you plan to use Google Analytics. Read and accept the terms that appear in the pop-up. 

3. Create a stream. 

Next, you will see a screen prompting you to select the type of data stream for which you’ll collect data. To add Google Analytics to WordPress, select a Web data stream. 

TT2023039 add google analytics to wordpress step 3a

Enter your stream name. Next, decide whether to use Enhanced measurement, which collects additional data.

TT2023039 add google analytics to wordpress step 3b

If you change your preferences later, you can update them, but Enhanced measurement data will only be collected while you are opted in.

4. Get a measurement ID with Site Kit.

Next, you will see a screen with three choices: Install manually, Install with a CMS or website builder, or Use a Google tag you already have. Choose Install with a CMS or website builder, and click Next. 

TT2023039 add google analytics to wordpress step 4a

Click Select your platform and choose Site Kit plugin.

TT2023039 add google analytics to wordpress step 4b

This will provide you with a Tag ID. Copy this number to your clipboard. 

TT2023039 add google analytics to wordpress step 4c

5. Go to WordPress. 

Your next task will be to install Google Analytics into WordPress. In your WordPress account, go to Tools > Marketing > Traffic. Find the box labeled Google Analytics Measurement ID and paste your Tag ID here. Click Save Settings. You are now collecting WordPress data with Google Analytics to understand how your customers are interacting with your website, blog, or e-commerce platform.

Common issues

If you just added Google Analytics to WordPress, you may be curious to know whether or not it’s working. You may notice some discrepancies if you compare the data you collect in Google Analytics to the data that WordPress collects with in-house analytics. This is normal and doesn’t indicate a problem. Jetpack and Google Analytics use different methods to collect and calculate data, which leads to differences in the results you see. 

Most Google Analytics data is not reported in real time, so you may notice a time lag between website activity and its reporting on Google Analytics. 

Read more: Market Analysis: What It Is and How to Conduct One

Explore our free marketing data analysis resources

Join Career Chat on LinkedIn to get timely updates on popular skills, tools, and certifications. Build or refresh your skills in marketing data analysis with our other free resources:

Accelerate your career growth with a Coursera Plus subscription. When you enroll in either the monthly or annual option, you’ll get access to over 10,000 courses.

Updated on
Written by:

Editorial Team

Coursera’s editorial team is comprised of highly experienced professional editors, writers, and fact...

This content has been made available for informational purposes only. Learners are advised to conduct additional research to ensure that courses and other credentials pursued meet their personal, professional, and financial goals.