How to Install Google Analytics in WordPress for Beginners


How to Install Google Analytics in WordPress for Beginners

Do you want to install Google Analytics in WordPress? Knowing how your audience interacts with your website is crucial for your success. The best way to know your audience is through your traffic stats, and this is what Google Analytics provide for FREE. In this article, we will share why Google Analytics is important, and how you can install Google Analytics in your WordPress blog (step by step).
How to Install Google Analytics in WordPress

Why is Google Analytics Important for Bloggers?

Once you start a blog, your #1 goal is to get more traffic and subscribers. Google Analytics help you make data-driven decisions by showing you the stats that matter. You can see:
Who visits your website?
This part of analytics answers what is the geographical location of your audience, which browser did the user use to visit your site and many other important information such as: screen resolution, JavaScript support, Flash support, language and more.
This data is extremely useful, and it can help in numerous ways. When getting a custom design, you can use the user data to make sure that your site will be compatible with your audience.
If most of your users don’t have Flash support, then you should avoid adding flash element in your site. If most of your users are on 1280 screen resolutions, then make sure that your design is compatible with that resolution or smaller.
What do people do when they are on your website?
You can track where the user is going on your website, how long do they stay on your website, and what is the bounce rate (the percent of users exit your site on the first visit).
By using this information, you can decrease the bounce rate and increase your pageviews.
When do people visit your website?
By looking at the hottest hours in the day for your site, you can pick the time when you publish your post. If that time zone is not compatible with yours, then you can schedule your post to meet that hour.
How do people find your website?
This section of the analytics show you where did the user come from (for example: Search Engines, Direct Links, Referral links from another site).
It also shows you what percentage of your visitors came from each of these sources. Google analytics gives you the breakdown of each of these categories. If it is the search engine category, then it shows you which search engine got you the most traffic, Google, Yahoo, Bing etc.
The breakdown of referral sources show you which sites you need to work with the most. If your top referral source is Facebook, then you need to have exclusive Facebook content to make your Twitter audience feel special.
If your top referral source is an external website, then you might want to consider having a partnership with that website (guest post exchange or something else).
How do people interact with your content?
Google analytics shows how your users interact with your site’s content. It shows you what percent of the user clicked on which link on your site and much more.
You can run A/B split tests by creating content experiments in Google Analytics to understand what works best to meet your goals.
By seeing the user interactivity, you can work your content around your users. By seeing the answers to the questions above, you can focus on the strategies that work for your site and eliminate the strategies that don’t work.
Simply put, eliminate the guess work and focus on stats that matter, so you can make data driven-decisions.

Video Tutorial


Subscribe to WPBeginner
If you don’t like the video or need more instructions, then continue reading.

How to Signup with Google Analytics

Step 1: First you need to create a Google Analytics account. To do this, visit Google Analytics Signup Page.
You will see a screen like the one below. If you already have a Google or Gmail account, then you can use that to sign-in. If you do not have a Gmail account, then you would have to create an account for yourself.
Google Analytics login
Step 2: Once you sign-in with your Gmail account, you will be prompted to a screen like the one below. This is where you will signup for Google analytics with your Gmail account.
Google Analytics signup
Step 3: On the next screen, you will be given choice to choose between a website or mobile app. Make sure you select website.
After that you need to enter account name (It will be the Google Analytics profile name for this website), Website name, website’s URL, country, and the time zone.
Set up your Google Analytics account
Once you have entered this information, click on the Get Tracking ID button. You will be presented with Google Analytics terms and service which you must agree to, so click on I Agree button.
Step 4: Now you will be presented with your Google Analytics tracking code. You can copy this tracking code because you will need to enter it in your WordPress site depending on the method you use below.
Google Analytics tracking code
We suggest leaving the analytics browser tab open as you may need to revisit it, once you have installed the code on your WordPress site.
Now that you have setup a Google Analytics account, lets take a look at how to install Google Analytics in WordPress.

How to Install Google Analytics in WordPress

There are many different ways to setup Google Analytics in WordPress. We will show you three different methods where the first option is the easiest and the last being the hardest.
You can choose the one that best suits your needs.

1. Google Analytics for WordPress by MonsterInsights

MonsterInsights is the most popular Google Analytics plugin for WordPress. Over 1 million websites use it including the likes of Bloomberg, PlayStation, Zillow, and more.
It is the easiest and by far the best way to add Google Analytics to WordPress (for all users beginners and experts).
MonsterInsights has both a free version and the Pro version. In this tutorial, we will be using the MonsterInsights free version.
You can use the MonsterInsights Pro version if you want more advanced features like Ecommerce tracking, Ads tracking, Author tracking, etc. The process of setting them up is the same.
Let’s get started.
The first thing you need to do is install and activate the MonsterInsights plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation the plugin will add a new menu item labeled ‘Insights’ to your WordPress admin menu. You need to visit Insights » Settings to configure the plugin settings.
On this screen, you need to click on ‘Authenticate with your Google account’ button to connect Google Analytics with your WordPress site.
Authenticate with your Google account
This will bring up a popup where you will be able to authenticate with your Google Account.
MonsterInsights popup to authenticate with your Google account
Click on ‘Next’ to continue.
Now you need to click on ‘Click to get Google code’ button.
Get authentication code
This will bring up another popup with the message ‘MonsterInsights would like access to your Google Analytics data’.
Click on the ‘Allow’ button to continue.
Give MonsterInsights permission to access your Google Analytics data
The authentication popup will now show you a line of code which you need to copy.
Get your authentication code
Next, you need to enter this code in the MonsterInsights popup and then click on ‘Next’ to continue.
Enter your authentication code
The final step is to select the profile you want to track. You need to select your website here and then click on the next button to continue.
Select Google Analytics profile you want to track
That’s all you have successfully installed and setup Google Analytics on your WordPress site.
Remember, it will take Google Analytics sometime before showing your stats.
The best part about MonsterInsights is that you can view your Google Analytics report inside your WordPress dashboard. Simply visit Insights » Reports page to checkout a quick overview of your analytics data.
MonsterInsights Reports
You can go also go in the Tracking tab to customize the tracking settings based on your needs:
MonsterInsights Tracking
Note: MonsterInsights was formerly known as Google Analytics for WordPress by Yoast. WPBeginner’s founder, Syed Balkhi, acquired the plugin in 2016 and rebranded it to MonsterInsights. Now it is part of our family of premium WordPress plugins.

2. Insert Headers and Footers Plugin

This method is not as not as good as MonsterInsights because you will not be able to do advanced tracking configuration, and you will not be able to view Google Analytics data in your WordPress dashboard.
First, you need to install and activate the Insert Headers and Footers plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, you need to visit Settings » Insert Headers and Footerspage. Here you need to paste the Google Analytics code that you copied in step 4 into the headers section.
Adding Google Analytics tracking code using Insert Headers and Footers plugin
Don’t forget to click on the save changes button to store your settings.

3. Install Google Analytics in WordPress Theme

This method is for advanced users only who are familiar with code. It is somewhat unreliable because your code will disappear if you switch or update the theme. We almost never recommend using this method.
If this is your first time adding code to your WordPress files, then you should check out our guide on how to copy paste code snippets in WordPress.
Add code in header.php file
Simply edit the header.php file in your WordPress theme and paste the code you copied in step 4 right after the <body> tag.
Don’t forget to save your changes and upload the file back to your server.
Add via Functions File
You can also add Google Analytics tracking code to WordPress functions file. It will then automatically add code to every page on your WordPress site.
You will need to add this code to your theme’s functions.php file.
1
2
3
4
5
6
7
<?php
add_action('wp_head', 'wpb_add_googleanalytics');
function wpb_add_googleanalytics() { ?>
 
// Paste your Google Analytics code from Step 4 here
 
<?php } ?>

Viewing Reports on Google Analytics Website

Google Analytics is capable of showing you a treasure of data collected from your stats. You can view this data by visiting your Google Analytics dashboard and clicking on the reporting tab.
Google Analytics reports
You will see the built-in Google Analytics reports in the left column. Each section is divided into different tabs and clicking on a tab will expand it to show more options.
  • Audience tab will show reports to help you understand your users.
  • Acquisition reports explore where your users came from.
  • Behavior reports summarize what your users do after they arrive on your site.
  • Conversion reports show how well you’re doing against your goals.
We hope this article helped you learn how to install Google Analytics in WordPress. You may also want to see our ultimate WordPress SEO guide for beginners.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Revealed: Why Building Your Email List is so Important Today!


Revealed: Why Building Your Email List is so Important Today!

Are you thinking about building an email list, but not sure why it is so important? Many bloggers and business owners don’t see the importance of building an email list right away until they see the impact email lists can have on website traffic and revenue. In this article, we will show you the top reasons why building your email list is important (with real case studies). We will also show you how to start building your email list – step by step.
By the end of this article, you will have answers to all your questions about building an email list.
Why Build Email List

What is an Email List and Why is it so Important?

An email list is a list of names and email addresses of people who gave you permission to send them updates and promotions from your business via email.
Why is this so important?
Because these subscribers joined your email list from your website and verified their identity by clicking on a link (double-optin). They are extremely interested in what you have to offer.
According to Direct Marketing Association, email marketing on average sees a 4300 percent return on investment (ROI) for businesses in USA.
In our business, email lists get 10 times higher conversions than social media campaigns. This makes sense if you think about these five advantages of email as a communication channel:
Email is Personal – Email allows you to land into a user’s inbox. There is no ranking system limiting your reach. It is very direct, personal, and casual.
Email is Purposeful – To get your email a user needs to signup for your email list and confirm their email address. Someone doing this much work is obviously interested in hearing from you, and they are much more receptive to your message.
Email is Targeted – As we mentioned earlier the user has already shown interest in your products / content. Since you already know what they like, you can deliver them highly relevant content and offers to get better results. This is called segmentation, and we will cover that later in the article.
You Own Your Email List – You do not own Facebook, Twitter, or Google. Your social media campaigns and SEO efforts can go to waste when these platform change their policies. On the other hand, you own your email list, and it is not influenced by decisions of other businesses.
Email is One-on-One – People read email in the privacy of their inbox. The message is not on a public timeline or newsfeed. They can ask you questions directly in private with confidence. This helps build trust and connection.
This is precisely why every smart business in the world has an email list.
Big name brands learned this lesson a long time ago, and that’s why they spend thousands of dollars on social media campaigns to get people to sign up for their email lists.
They understand that email marketing is the best long term investment with a much higher return. Because people will continue to get their message at a very low cost for a longer period of time.

Social Media vs Email Marketing

Social Media vs Email Marketing
Now you’re probably thinking, wait a minute. What about social media?
A lot of social media experts and consultants, in an attempt to sell their services, downplay the importance of an email list.
In fact, we have even been asked isn’t email marketing kind of dead with social media taking over everything?
The best way to answer this question is to look at the information Twitter and Facebook ask you before you create an account:
Twitter and Facebook Signup Forms
Yup, it’s an email address. Because these companies know that emails are the most direct and reliable way of getting in touch.
All social media platforms are building an email list because they are smart business owners. This helps their valuation when selling their business.
While social media is a great way to reach your audience, it’s important to keep in perspective the timely nature of social media platforms.
They come and go.
Not too long ago we had MySpace, FriendFeed, Google Buzz, Plurk and countless others. Most of them are either dead now or irrelevant.
Today we have Facebook and Twitter, but not everyone is as hooked up on these sites. Some prefer other places like Instagram, Pinterest, Vine, Snapchat, etc.
But studies show that at least 91% of consumers check their email on a daily basis.
We are not saying that social media is not important. It is, and you should explore every opportunity to reach out to your audiences.
However you should spend more time and effort into something that guarantees much higher results.

What You Need to Start Building an Email List?

Hopefully by now, you should know why building an email list is so important, and why ignoring it would be a HUGE mistake.
So let’s take a look at what you need to start building your email list.
3 Things You Need to Build an Email List:
  1. A website or blog.
  2. An email marketing service.
  3. High-converting opt-in forms
All three of these are fairly easy to setup, and none of them require you to know how to code.
For the sake of this article, we will only be focusing on the last two items in the list. If you don’t have a website or blog yet, then see our step by step guide on how to start a blog.

Choosing the Best Email Marketing Service

Best email marketing services
There are tons of email marketing services online. Often beginners use the free options to save cost, which is understandable. However, some of those free platforms are not the best option. Why?
Services like FeedBurner or Jetpack Subscriptions offer blog subscription via email. This allows your users to receive an email update every time you publish a new blog post.
The downside to a blog notification service like this are:
  • You will have to create a blog post to send an email. This means that information you want to share will have to be publicly available first. You can’t send out private email newsletters.
  • You can’t personalize the email message. It will be delivered in the same format often with no branding or personalization.
  • You can’t categorize subscribers by interests, demographics, or content type.
  • There is no reporting. You don’t know how many people got email, what percentage of users opened it, and how many of them clicked on links.
  • If you later tried to move to a paid service, your users will have to re-confirm their subscription. Many of them will not do it, and you will end up losing subscribers.
This is why we ALWAYS recommend using a professional email marketing service. Yes, they cost a little bit of money, but they are an investment in your business which pays huge returns.
The benefit of professional email marketing services are:
  • You can send private mass emails to your subscribers.
  • You can see subscriber activity and group your subscribers based on actions they take.
  • You can run A/B split tests to see which email subject line, content, and offers work best with your subscribers.
  • With reporting tools, you can see which country you have the most subscribers from. You can adjust your timezone preferences, and send emails at the right time.
  • Last, but definitely the most important, you can see the email addresses of all your subscribers.
There are hundreds of professional email marketing services available, but we have compiled a list of the best email marketing services.
For small businesses, we recommend using Constant Contact because they are one of the largest and fastest growing email marketing services in the world.
They offer a 60 day free trial. This gives you plenty of time to setup and start seeing the results. At the end of 60 days, your email list would likely be paying for itself (cost $20 / month). Start your free trial.
Constant Contact
Because we know people often like to see options before they make a decision, we also recommend AWeber. They are another popular email marketing service provider, and they offer our users a 30-day free trial.
Once you have signed up with an email marketing service, the next step is to add opt-in forms to your website to allow your users to subscribe.

Growing Your Email List and Getting More Subscribers

While choosing the right email marketing service is important, getting more subscribers is even more important because this is how you make money.
The biggest mistake beginners make is not strategically placing high-converting opt-in forms.
While some WordPress themes come with built-in sidebar widgets, they don’t convert as well. Your email marketing service may also provide you with codes to embed in your theme, but that requires you to know how to code.
This is why we recommend our users to use OptinMonster. It is the most powerful conversion optimization software that helps you convert abandoning website visitors into subscribers and customers.
You can easily create high-converting optin forms such as lightbox popups, floating header and footer bars, slide-in scroll boxes, fullscreen welcome mat, after post and inline forms, and more.
Add beautiful signup forms
But what makes OptinMonster really powerful is the behavior automation and personalization features. OptinMonster allows you to automatically show different opt-in forms based on where the user is coming from, which page they are visiting, and what they are doing on your website.
For example, the Exit-Intent® feature track your users mouse behavior and show them a targeted opt-in form at the precise moment they are about to leave. This helps you convert abandoning visitors into subscribers.
This is important because over 70% of people leaving your website will never return.
That’s why influencers like Michael Hyatt, Neil Patel, and Social Media Examiner use exit-intent on their websites. It helped Social Media Examiner add over 95,000 new subscribers in 7 months.
But for smaller businesses, this is even more crucial. Nicolas Gagne, a small business owner, combined Constant Contact with a single exit-intent optin to grow his email list by 500%. This helped him triple his revenue from his online store (see the full case study).
There are tons more case studies and OptinMonster reviews that you can read as well.
Get started with OptinMonster today — Use the coupon WPB10 to get 10% off.
Note: OptinMonster was started by WPBeginner’s founder, Syed Balkhi, because he wanted to get more email subscribers, faster. It helped us increase our email signups by 600%. Due to popular request, we released this tool for public, and now it’s the most recommended lead generation software in the market.

List Building Strategies and Resources

Email Marketing Strategies
Having the right tools is crucial, but knowing how to use them properly is what makes the most difference.
In your email marketing strategy, the most important thing you should plan out is segmentation. This is the process of grouping your subscribers, so you can better personalize your emails based on interest. It helps you get higher open rates and click-through rates. This definitive guide to email marketing has all the information you need to segment your email list like a pro.
Content Upgrades are the highest converting opt-in forms. It’s a technique where you give your users bonus content at the end of your popular blog posts. These usually convert 5 times higher than a regular opt-in. Here are some content upgrade ideas that you should check out. We have written a guide on how to add content upgrades in WordPress.
If you’re not sure how to create an opt-in form, then use this 63-point checklistfor creating a high-converting optin form.
You may want to check out Kevin Duncan’s article on 16 ridiculously simple ways to get more email subscribers in less than 5 minutes.
In case you want more ideas, Mary Fernandez also shared 73 proven and simple ways to grow your email list that should get you going.

Conclusion

It does not matter what kind of business you run, what kind of website you have, or what industry you are in.
If you have a website, and you want to turn your visitors into returning customers, then you need to get them in your email list.
We hope this article helped you understand why building an email list is important and helped you get started on the right foot.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Admin themes

Powered by Blogger.