Adding Google Analytics To Wordpress
- Add Google Analytics To Wordpress Plugin
- Add Google Analytics To Wordpress Child Theme
- Google Analytics And Wordpress
- Adding Google Analytics To Wordpress
- Add Google Analytics To Wordpress Header
To add Google Analytics to WordPress using MonsterInsights plugin, go to Plugins » Add New from your WordPress menu. Search for MonsterInsights and when the plugin shows up, click Install Now then, Activate. Go to Insights » Settings to authenticate your blog with Google Analytics. Click Authenticate with your Google account. Hello dosto aaj mai apko bataunga ki kaise aap new way se google analytic ko wordpress blog se connect kar sakte hai.#BMTechTips, #GoogleAnalytic, #WordPres.
Do you want to add Google Analytics to WordPress to grow your traffic?
By using Google Analytics, you’ll gain a deeper understanding of your audience. It’s the best way to get to know your site visitors and give them exactly what they want. That’s why if you want to increase your traffic, you need Google Analytics.
The problem is that it’s not always straightforward to install or use this important tool.
Fortunately, it’s easy to add Google Analytics to WordPress using a plugin.
By the end of this article, you’ll know exactly how to add Google Analytics to your WordPress site with and without a plugin.
Why Add Google Analytics to WordPress
There are several reasons why you should add Google Analytics to your WordPress site.
Google Analytics tracks your website traffic and tells you how people are engaging with your site. You’ll be able to uncover your most popular pages, offers, and traffic sources. Instead of guessing which content and campaigns your audience loves, you can check the stats for yourself.
Using Google Analytics, you can view:
- Top performing content
- Biggest referral sources
- Length of time readers spend on your site
- Bounce rate
You’ll also be able to learn more about your audience, like where they’re from and the devices they use to browse your site.
This information will guide the choices you make about content and marketing campaigns.
For instance, if you’re a content publisher, you can use the insights to create better content for your readers. As a result, you’ll be able to increase the time people spend on your site and even decrease your bounce rate.
Online store owners can track the point of sale, determine when shoppers abandon their carts, and identify their highest converting pages. This gives you the data you need to improve your checkout process and encourage sales.
As you can see Google Analytics helps you answer so many questions about your audience.
So, you might be wondering how do I add Google Analytics to my WordPress site?
The good news is that it’s incredibly easy to add Google Analytics to your site.
You simply need a Google account and 10 minutes.
Let’s begin.
How to Add Google Analytics to WordPress
Adding Google Analytics to WordPress is quick, simple, and free.
Here are the methods we will use today:
- Method 1: Connecting to Google Analytics using a reliable tool
- Method 2: Adding Google Analytics Tracking Code into WordPress theme
Now, the recommended method is adding Google Analytics to WordPress with a tool. That’s because it’s the easiest way, and you won’t have to write any code or worry about editing your WordPress theme.
Before we get into the details, we’ll need to create a Google Analytics account.
If you have already have a Google account, you’ll need to sign in to set up Google Analytics.
Once you’re logged in with your Gmail account, you’ll be able to sign up for Google Analytics.
Now, you will need to provide an account name. This is for internal use. You can add multiple website properties under this account name.
Click the Next button to move to the next step.
Here, you will need to add your property details. This is specific to your website. So enter a name that represents your website or business.
You can select your timezone and then click the Next button once you’ve added your details.
After this, you can select your business information. This will help Google tailor the data according to your business needs.
Now, you’ll need to accept Google’s terms of the agreement. Tick the two checkboxes and then scroll to the bottom to find the ‘I Accept’ button.
Once done, the Google Analytics dashboard will open. Here, you’ll see 3 options to set up a data stream. You’ll need to select the ‘Web’ option.
Next, you can enter your website’s URL and a stream name and then click on the ‘Create Stream’ button.
Google will create a measurement ID and stream ID, along with a tracking code.
You can find this tracking code under the ‘Tagging instructions’ section. You’ll need to open the Global Site Tag tab and then copy this tracking code.
Now, you’ll need to add this tracking code on your WordPress site in order to connect Google Analytics to your website.
It can be quite technical to do so. So we’ll show you two ways to add it to your site, using a plugin and manually entering the code.
Method 1: Installing Google Analytics Plugin on WordPress
We’ll start with the simplest method for adding Google Analytics to WordPress.
For that, we’ll use the MonsterInsights plugin.
MonsterInsights is the best Google Analytics WordPress plugin because it comes with an easy to use dashboard and powerful features.
Now, we know Google Analytics offers a lot of data. That’s a good thing. But it can be overwhelming to sort through the reports to find meaningful information. With MonsterInsights, you get to view the most important statistics right from your WordPress dashboard.
All you need to do is download the plugin and view your reports from the dashboard.
With MonsterInsights, you get:
- Access to your analytics right from inside your WordPress dashboard
- Quick Google Analytics set up without writing any code
- Easy to understand audience and content reports
This is why it has more than 2 million active installs and the most popular Google Analytics plugin for WordPress.
One of the best things about the MonsterInsights plugin is that it’s regularly tested and optimized for speed. So it won’t slow down your site which is good for SEO.
Below, we will walk through how to set up MonsterInsights in 5 minutes or less.
First, you need to download and activate the MonsterInsights plugin.
After activating the plugin, you’ll see the Insights tab in your dashboard.
Select it to open up the MonsterInsights dashboard and inside, you’ll see an option to Launch Setup Wizard.
This will start step by step instructions for you to install Google Analytics.
On the next screen, you’ll need to select which category best describes your site.
After your ‘Save and Continue’, you’ll see a page that lets you instantly Connect MonsterInsights.
You’ll need to sign in to the same Google account that you did earlier when you set up Google Analytics.
Click the Allow button to add Google Analytics to your WordPress site.
MonsterInsights will fetch your account. All you need to do is to select your website and click the Complete Connection button.
Now, MonsterInsights will do the technical work and add Google Analytics to your WordPress site without any risk.
Keep in mind that it will take some time for Google Analytics to show your statistics.
Once you’re up and running, you can view your data right from your WordPress dashboard.
Method 2: Adding Google Analytics Without a Plugin
The second method is adding your Google Analytics code in WordPress without a plugin.
Bear in mind, you’ll be editing your website theme, and this could break your website. You’ll also need to reenter the tracking whenever you switch themes.
Any misstep here could lead to a blank or malfunctioning site. So before adding the Google Analytics code to your site, it’s a good idea to backup your site.
First, make sure you’ve copied the tracking code in your Google Analytics account.
Now, head over to your WordPress dashboard.
From the dashboard, click Appearance. Next, click Theme Editor. If you don’t see this option, your security plugin or developer may have disabled it for you to secure your site from hackers. You’ll need to contact them to enable it.
Inside the Theme Editor, from the left-hand menu, select Theme Header.
Now, just before the closing head tag, paste the tracking code. Make sure you leave everything else as is.
Exit the editor and that’s it. You’ve added Google Analytics to your site.
Now, you’ll be able to track your site visitors and how they engage with your WordPress site.
We hope you found this article helpful.
Using Google Analytics is one way to turn your website into a business tool. If you’re hungry for more resources on growing your business using your website, check these articles:
There you have practical resources and strategies for using analytics to gain a deeper understanding into your audience. This means you’re one step closer to creating the content and offers they truly want.
Do you want to better understand who visits your WordPress® website and how they interact with its content? Google Analytics™ can provide this essential information for free.
Read on to learn the importance of Google Analytics, how to create a Google Analytics account, and how to connect it to your WordPress website. By following this step-by-step guide, you can start tracking your website traffic via Google Analytics within an hour.
Don’t have a WordPress website yet? Check out our guide on How To Make a WordPress Site.
Want to learn how to use Google Analytics? Take this online course created by Google.
Why Is Google Analytics Important?
After you build a website for your business, you must then focus on driving visitors to that site. Google Analytics can provide the tools you need to learn who visits your website, how they find it, and how they interact with its content.
With this information, you can then improve your site’s content and overall user experience. In addition, you can use this data to discover what you must do to increase visitors and conversions. All businesses with a WordPress website also should have a linked Google Analytics account.
To learn more about how people find your website, check out our search engine optimization (SEO) guide. For more information on the importance of using Google’s tools for local businesses, read our How To Use Google My Business and How To Optimize Google My Business articles.
Step 1: Create a Google Analytics Account
Before you can add Google Analytics to your WordPress website, you must create a Google Analytics account.
To create a Google Analytics account:
- Visit the Google Analytics website.
- Sign in with your Gmail™ email address if you have one or create one if you don’t.
- Click on the “Start Measuring” button.
The following screen will then appear: - In the “Account name” field, enter an account name (usually just the name of your business).
- Decide what data you want to share with Google, and then click on the “Next” button.
- You’ll then arrive on a “Property details” screen. Your property name is the name of your website (often the same name as your business). In the “Property name” field, enter your property name, and then select your time zone and local currency.
- Click the “Show advanced options” link.
- Under “Create a Universal Analytics property,” switch the toggle to the “on” position.
- Click on the “Next” button.
- You’ll then arrive on a “Business information” screen. Select your “Industry category” and “Business size.” Also check the appropriate boxes under “How do you intend to use Google Analytics with your business?”
- Click on the “Create” button.
- Check the box to indicate you agree to Google’s Terms of Service and Data Processing Terms, and then click on the “I Accept” button.
- Decide what email you want to receive regarding Google Analytics, check the appropriate boxes, and then click the “Save” button.
- Under “Set up a data stream to start collecting data,” click on the “Web” button.
- Under “Website URL,” enter your website’s address. Under “Stream name,” enter the name of your website. Finally, determine if you want to activate Google’s enhanced measurement tools, and then click on the “Create stream” button.
- When you see the below screen, you’ll know you successfully created a Google Analytics account.
Add Google Analytics To Wordpress Plugin
Step 2 (Option A): Connect Google Analytics To WordPress Site With a Third-Party Plug-In
The easiest way to connect your Google Analytics account to your WordPress website involves installing a third-party plugin. A variety of plugins can help you accomplish this, but two of the most popular include the MonsterInsights® and Insert Headers and Footers plugins.
Add Google Analytics To Wordpress Child Theme
To Connect Your Google Analytics Account Via the MonsterInsights Plug-In:
- Select “Plugins” and then “Add New” from the WordPress dashboard.
- Type “MonsterInsights” into the search box.
- When the above screen appears, click on the “Install Now” button.
- Then, click on the “Activate” button.
- On the next screen, click on the “Launch the Wizard!” button.
- Select the category that best describes your website, and then click on the “Save and Continue” button.
- The below screen will then appear. Click the “Connect MonsterInsights” button.
- Enter the email address you used to create your Google Analytics account, and then click on the “Next” button.
- Enter the password associated with the above email address, and then click on the “Next” button.
- On the security screen that follows, click on the “Allow” button.
- Verify that the next screen correctly lists your website’s name, and then click on the “Complete Connection” button.
- On the next two screens, click on the “Save and Continue” button.
- When asked if you want to install WPForms™, click the “Skip This Step” link.
- Finally, click on the “Finish Setup & Exit Wizard” button.
To Connect Your Google Analytics Account Via the Insert Headers and Footers Plug-In:
- Select “Plugins” and then “Add New” from the WordPress dashboard.
- Type “Insert Headers and Footers” into the search box.
- When the screen below appears, click on the “Install Now” button.
- Then, click on the “Activate” button.
- After you install this plugin, select “Settings” and then “Insert Headers and Footers” from the WordPress dashboard.
- Return to Google Analytics and copy the “global site tag (gtag.js)” code listed on the “Tagging Instructions” screen under the “Add new on-page tag” section.
Note: If you accidentally closed out of this section, you can find it again by selecting “Data Streams” from the left sidebar of the Google Analytics dashboard and then choosing your website’s data stream. - Return to your website and paste the copied code into the “Scripts in Header” section.
- Click on the “Save” button.
Step 2 (Option B): Connect Google Analytics To WordPress Using Google’s Site Kit Plugin
Alternatively, you can connect your Google Analytics account to your WordPress site with Site Kit — Google’s official WordPress plugin.
To Connect Your Google Analytics Account Via the Site Kit Plugin:
- Select “Plugins” and then “Add New” from the WordPress dashboard.
- Type “Site Kit” into the search box.
- When the screen below appears, click on the “Install Now” button.
- The, click on the “Activate” button.
- After you install this plugin, click on the “Start Setup button.”
- Click on the “Sign in with Google” button.
- Sign in with your Google Analytics username and password.
- When prompted, click on the “Allow” button three times to give Google the access it needs to run this plugin on your website.
- On the next screen, click on the “Proceed” button to verify you own the website to which you want to connect your Google Analytics account.
- Next, click on the “Allow” button to give Google permission to access your Google Account data to display it on the Site Kit dashboard.
- On the next screen, click on the “Add site” button to add your website to Google’s Search Console — a tool often used to discover how people locate your website.
- Once you finish your Site Kit setup, click on the “Go To My Dashboard” button to return to your WordPress website and finish connecting Google Analytics.
- When you arrive back on your WordPress site, you’ll see the following Google Site Kit dashboard screen.
- Under Analytics, click the “Connect Service” link.
- Sign in with the Google username and password you used when creating your Google Analytics account.
- When prompted, click on the “Allow” button twice to give Google the access it needs to connect Google Analytics to your website.
- Select the Google Analytics account you wish to connect.
- Finally, click on the “Configure Analytics” button.
Final Thoughts
While connecting Google Analytics to your WordPress website might seem a bit overwhelming, these three plugins make it easy to complete the process within an hour.
Google Analytics And Wordpress
Once you start tracking the traffic to your WordPress website with Google Analytics, work to increase that traffic by following the advice in these related articles:
How To Drive Traffic To Your Website
How People Find Your Website: SEO 101
How To Improve SEO
Small Business Marketing Strategies
Adding Google Analytics To Wordpress
If you want to learn about other useful WordPress plugins, check out our guide to the Best Plug-Ins for a WordPress Site. In addition, our How To Use WordPress article will teach you how to perform other common tasks within the WordPress content management system. If you’re just getting started, read our How To Make a WordPress Site for step-by-step instructions on building a site for your business.