How to Add Google Analytics to WordPress

作者:Coursera Staff • 更新于

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.

WordPress is an open-source software for creating websites, blogs, and e-commerce platforms. It offers a suite of services in its Premium, Business, and Commerce subscription plans, including the ability to connect Google Analytics for website tracking and data collection to understand how your customers are interacting with your website or blog. 

In this tutorial, you will learn how to add Google Analytics to WordPress to begin collecting user data.

 

How to add Google Analytics to WordPress

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 timezone, 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 website builder or CMS, or Use a Google tag you already have. Choose Install with a website builder or CMS, 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. 

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. 

Learn more about Google Analytics

If you’re ready to take the next step and learn more about a career as a marketing coordinator, e-commerce associate, or similar position, consider earning your Google Digital Marketing & E-commerce Professional Certificate on Coursera. This beginner-level, seven-course series is designed to help you learn skills in search engine optimization, display advertising, email marketing, and more.

更新于
作者:

编辑团队

Coursera 的编辑团队由经验丰富的专业编辑、作者和事实核查人员组成。我们的文章都经过深入研究和全面审核,以确保为任何主题提供值得信赖的信息和建议。我们深知,在您的教育或职业生涯中迈出下一步时可能...

此内容仅供参考。建议学生多做研究,确保所追求的课程和其他证书符合他们的个人、专业和财务目标。