How to Install Google Analytics on WordPress

WPBeginner - WordPress Tutorials · Beginner ·📰 AI News & Updates ·9y ago

Key Takeaways

Installs Google Analytics on a WordPress website using the MonsterInsights plugin

Full Transcript

in this video you're going to learn exactly how to install Google analytics on your WordPress website and we'll cover three methods you can choose from to easily add Google analytics to Wordpress so you can choose which method works best for you see knowing how your audience interacts with your website is crucial for your site's success so if you're ready let's get [Music] started once you start a blog your number one goal is to get more tra and subscribers and having Google analytics on your site well that helps you make the datadriven decisions you need by showing you the stats that matter so with Google analytics you can see stats like who's visiting your site which posts are the most popular and how people interact with your site and a lot more to get Google analytics on your site you first need to have an analytics account so let's go to analytics.google.com if you don't have an account yet you can sign up here from here let's choose the website and choose account name then set up your property and let's go ahead and add our website address here now we can choose the category that the site is about and we can set up our reporting zone now we can scroll down and click get tracking ID and now we see the tracking ID here okay so we've set up our Google analytics now we need to go to our website and set it up so that they're talking all right now we need to install it on our WordPress dashboard I'm going to go ahead and leave this tab open but I'm going to head over to my WordPress dashboard and from here like I said we're I'll show you three different ways that you can use them choose one of these three and the first one is by using a plugin so let's go to plugins add new we're looking for Monster insights and you see it's the Google analytics for WordPress by monster insights that's the one we want so we'll click install now and then we need to activate it once that's activated let's go ahead and configure it you see you have a notification to do that so we can click it up here or we can even go down to settings I'm going to click on the analytic settings notification all right from here you can see that we can authenticate it with our Google account so just click that button and it'll walk us through it to authenticate I'll click next click next and I need to click to get the Google code it'll open up a new area where I need to give permissions to view the data so let's click allow and it's looking for this piece of code that we want to copy head back over here and let's paste that click next from here you need to choose an analytics profile that's the one that we just set up so let's pick that one next and then when it's done says we're all set so we can close this out and then it puts us back into our monster insights area now we just need to click save changes and now when we head over to our dashboard in the future once Google analytics has started tracking data then we'll see all the data here our second method is another plugin so let's head back over to our plugins area add new and for this one we want to install insert headers and Footers this is a great way for you to install track different tracking information either in the header section or the footer section without having to mess with your WordPress theme and we actually maintain this with WP beginner and it's a free plugin for you to use you can click install now and activate now that it's activated we can head over to our settings area insert headers and Footers and and remember I said we keep our Google analytics open I'm going to head back over to that page we need to copy this script once we copy it we can go back over to our WordPress dashboard and we need to paste that script in our scripts and header section so I'm going to click in here right click and paste it want to make sure that you save your changes and now Google analytics is still able to track your data the difference between header insert headers and Footers and monster insights is that with monster insights you could see a lot of your data and your analytics from within your WordPress dashboard which was great because you you don't have to leave it with insert headers and Footers although it's doing a great job of tracking you'll need to go to your Google analytics to see any of your data the third method is more for advanced users and we don't usually recommend it because the codee can disappear if you change themes and you would either add this directly to your header.php file or you can use this quick functions that we created add your code here and then you would add that to your functions.php file and now you've added Google analytics to your website and you can start tracking the data that means the most to you did you learn something from today's video If so subscribe to our YouTube channel and we'll send more helpful tips to help you manage your WordPress website and thanks for watching

Original Description

Check out the updated video: https://youtu.be/TWSrpXQDSbk on how to install Google Analytics in WordPress. Need to install Google Analytics on your WordPress website? Google Analytics for WordPress is a powerful way to learn about your site. It can seem confusing with the steps they give you to install Google Analytics on WordPress, but our video should simplify the process. In this video, we will show you how to use Google analytics for your WordPress site. If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos. Text version of this tutorial: http://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/ Follow us on Twitter: http://twitter.com/wpbeginner Checkout our website for more WordPress Tutorials http://www.wpbeginner.com/ Summary of this Tutorial: Ensure you are signed up to Google Analytics, you can sign up using the link below: https://analytics.google.com You will need to sign in with your gmail account and will be prompted to sign up. Once you do you will want to insert an account name, website name, url, and category for Google Analytics to know what to look for. With your signup complete we will go back to your WordPress site and install and activate the MonsterInsights plugin. Free: https://wordpress.org/plugins/google-analytics-for-wordpress/ Pro: https://www.monsterinsights.com/ With the plugin active you will want to go under Insights, Settings to configure the plugin settings. There will be a button on this page to click with the title Authenticate with your Google account which brings up the authentication steps. Following the steps you will click to get your Google code and add it to the textbox and you will have successfully activated Google Analytics on your site. If you would prefer a different plugin option you could go with Insert Headers and Footers. Insert Headers and footers http://wordpress.org/extend/plugins/insert-headers-and-footers/ W
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from WPBeginner - WordPress Tutorials · WPBeginner - WordPress Tutorials · 0 of 60

← Previous Next →
1 How to Add Google Search in a WordPress Site
How to Add Google Search in a WordPress Site
WPBeginner - WordPress Tutorials
2 How to Display Simple Notices in WordPress
How to Display Simple Notices in WordPress
WPBeginner - WordPress Tutorials
3 How to Bulk Move Posts to Categories and Tags in WordPress
How to Bulk Move Posts to Categories and Tags in WordPress
WPBeginner - WordPress Tutorials
4 How to Create A Question and Answers Site in WordPress
How to Create A Question and Answers Site in WordPress
WPBeginner - WordPress Tutorials
5 How to Add a Subtitle to Posts and Pages in WordPress
How to Add a Subtitle to Posts and Pages in WordPress
WPBeginner - WordPress Tutorials
6 How to Add a Caption to Images in WordPress
How to Add a Caption to Images in WordPress
WPBeginner - WordPress Tutorials
7 How to Show Latest Videos From a YouTube Channel in WordPress
How to Show Latest Videos From a YouTube Channel in WordPress
WPBeginner - WordPress Tutorials
8 How to Check Grammar and Spelling Mistakes in WordPress
How to Check Grammar and Spelling Mistakes in WordPress
WPBeginner - WordPress Tutorials
9 How to Send A Custom Welcome Email to New Users in WordPress
How to Send A Custom Welcome Email to New Users in WordPress
WPBeginner - WordPress Tutorials
10 How to Add a Custom Comment Form Title in WordPress
How to Add a Custom Comment Form Title in WordPress
WPBeginner - WordPress Tutorials
11 How to Add a News Ticker in WordPress
How to Add a News Ticker in WordPress
WPBeginner - WordPress Tutorials
12 How to Add a Full Screen Background Image in WordPress
How to Add a Full Screen Background Image in WordPress
WPBeginner - WordPress Tutorials
13 How to Fix Image Upload Issue in WordPress
How to Fix Image Upload Issue in WordPress
WPBeginner - WordPress Tutorials
14 How to Show and Hide Text in WordPress Posts with the Toggle Effect
How to Show and Hide Text in WordPress Posts with the Toggle Effect
WPBeginner - WordPress Tutorials
15 How to Show Page Templates in WordPress Dashboard
How to Show Page Templates in WordPress Dashboard
WPBeginner - WordPress Tutorials
16 How to Restrict WordPress Site Access by IP or Logged In Users
How to Restrict WordPress Site Access by IP or Logged In Users
WPBeginner - WordPress Tutorials
17 How to Add Google Translate in WordPress
How to Add Google Translate in WordPress
WPBeginner - WordPress Tutorials
18 How to Add Custom Buttons with Post Editor Buttons in WordPress
How to Add Custom Buttons with Post Editor Buttons in WordPress
WPBeginner - WordPress Tutorials
19 How to Fix Featured Images Appearing Twice in WordPress Posts
How to Fix Featured Images Appearing Twice in WordPress Posts
WPBeginner - WordPress Tutorials
20 How to Add Tables in WordPress Posts and Pages No HTML Required
How to Add Tables in WordPress Posts and Pages No HTML Required
WPBeginner - WordPress Tutorials
21 How to Change the WordPress Database Prefix to Improve Security
How to Change the WordPress Database Prefix to Improve Security
WPBeginner - WordPress Tutorials
22 How to Turn Off Related YouTube Videos in WordPress
How to Turn Off Related YouTube Videos in WordPress
WPBeginner - WordPress Tutorials
23 How to Receive WordPress Emails from Localhost
How to Receive WordPress Emails from Localhost
WPBeginner - WordPress Tutorials
24 How to Split WordPress Posts into Multiple Pages
How to Split WordPress Posts into Multiple Pages
WPBeginner - WordPress Tutorials
25 How to Update URLs When Moving Your WordPress Site
How to Update URLs When Moving Your WordPress Site
WPBeginner - WordPress Tutorials
26 How to Crop, Rotate, Scale, and Flip Images in WordPress
How to Crop, Rotate, Scale, and Flip Images in WordPress
WPBeginner - WordPress Tutorials
27 Image Alt Text vs Image Title in WordPress
Image Alt Text vs Image Title in WordPress
WPBeginner - WordPress Tutorials
28 How to Add Staff Member Profiles in WordPress with Staffer
How to Add Staff Member Profiles in WordPress with Staffer
WPBeginner - WordPress Tutorials
29 How to Add Custom Fields to Comments Form in WordPress
How to Add Custom Fields to Comments Form in WordPress
WPBeginner - WordPress Tutorials
30 How to Add New Users and Authors to Your WordPress Blog
How to Add New Users and Authors to Your WordPress Blog
WPBeginner - WordPress Tutorials
31 How to Fix WordPress Website Not Updating Right Away
How to Fix WordPress Website Not Updating Right Away
WPBeginner - WordPress Tutorials
32 How to Show Live Preview of Links in WordPress
How to Show Live Preview of Links in WordPress
WPBeginner - WordPress Tutorials
33 How to Add Image Icons With Navigation Menus in WordPress
How to Add Image Icons With Navigation Menus in WordPress
WPBeginner - WordPress Tutorials
34 How to Use Multiple Themes for Pages in WordPress
How to Use Multiple Themes for Pages in WordPress
WPBeginner - WordPress Tutorials
35 How to Fix Missing Admin Bar Issue in WordPress
How to Fix Missing Admin Bar Issue in WordPress
WPBeginner - WordPress Tutorials
36 How to Add Tabbed Content in WordPress Posts and Pages
How to Add Tabbed Content in WordPress Posts and Pages
WPBeginner - WordPress Tutorials
37 How to Create Custom Taxonomies in WordPress
How to Create Custom Taxonomies in WordPress
WPBeginner - WordPress Tutorials
38 How to Display a List of Child Pages For a Parent Page in WordPress
How to Display a List of Child Pages For a Parent Page in WordPress
WPBeginner - WordPress Tutorials
39 How to Fix Error Too Many Redirects Issue in WordPress
How to Fix Error Too Many Redirects Issue in WordPress
WPBeginner - WordPress Tutorials
40 What is the Difference Between Posts vs Pages in WordPress
What is the Difference Between Posts vs Pages in WordPress
WPBeginner - WordPress Tutorials
41 How to Allow User Log In with Email in WordPress
How to Allow User Log In with Email in WordPress
WPBeginner - WordPress Tutorials
42 How to Display WordPress Widgets in Columns
How to Display WordPress Widgets in Columns
WPBeginner - WordPress Tutorials
43 How to Easily Replace Image and Media Files in WordPress
How to Easily Replace Image and Media Files in WordPress
WPBeginner - WordPress Tutorials
44 How to Add Featured Video Thumbnails in WordPress
How to Add Featured Video Thumbnails in WordPress
WPBeginner - WordPress Tutorials
45 How to Create a Photo Gallery with Albums in WordPress
How to Create a Photo Gallery with Albums in WordPress
WPBeginner - WordPress Tutorials
46 How to Easily Add Lazy Loading for Videos in WordPress
How to Easily Add Lazy Loading for Videos in WordPress
WPBeginner - WordPress Tutorials
47 How to Add an Audio Music Player Widget in WordPress
How to Add an Audio Music Player Widget in WordPress
WPBeginner - WordPress Tutorials
48 How to Create a Wiki Knowledge Base Using WordPress
How to Create a Wiki Knowledge Base Using WordPress
WPBeginner - WordPress Tutorials
49 Adding a Post Rating System in WordPress with WP PostRatings
Adding a Post Rating System in WordPress with WP PostRatings
WPBeginner - WordPress Tutorials
50 How to Clean Up Your WordPress Database for Improved Performance
How to Clean Up Your WordPress Database for Improved Performance
WPBeginner - WordPress Tutorials
51 How to Add Character Limit to Post Titles in WordPress
How to Add Character Limit to Post Titles in WordPress
WPBeginner - WordPress Tutorials
52 How to Add a Private Messaging System in WordPress
How to Add a Private Messaging System in WordPress
WPBeginner - WordPress Tutorials
53 WWW vs non WWW and Which is Better For WordPress SEO
WWW vs non WWW and Which is Better For WordPress SEO
WPBeginner - WordPress Tutorials
54 How to Add Voice Search Capability to your WordPress
How to Add Voice Search Capability to your WordPress
WPBeginner - WordPress Tutorials
55 How to Show Real Time Online Users in WordPress
How to Show Real Time Online Users in WordPress
WPBeginner - WordPress Tutorials
56 How to Create a Duplicate Menu in WordPress with One Click
How to Create a Duplicate Menu in WordPress with One Click
WPBeginner - WordPress Tutorials
57 How to Hide a Post From Home Page in WordPress
How to Hide a Post From Home Page in WordPress
WPBeginner - WordPress Tutorials
58 How to Add A Restaurant Reservation System in WordPress
How to Add A Restaurant Reservation System in WordPress
WPBeginner - WordPress Tutorials
59 How to Add a Border Around an Image in WordPress
How to Add a Border Around an Image in WordPress
WPBeginner - WordPress Tutorials
60 Beginner’s Guide How to Back Date Your WordPress Posts
Beginner’s Guide How to Back Date Your WordPress Posts
WPBeginner - WordPress Tutorials

Related Reads

📰
LPKWJ Tech Report: Bitcoin Miners Power the AI Computing Surge
Bitcoin miners are powering the AI computing surge due to a critical power shortage, enabling decentralized computing facilities to become strategic assets for tech companies
Dev.to AI
📰
Should ChatGPT Pay for What It Learns?
Explore the legal implications of AI training on copyrighted content and its potential consequences on fair use and copyright laws
Medium · AI
📰
Should ChatGPT Pay for What It Learns?
Explore the legal implications of AI training on copyrighted content and its potential consequences
Medium · ChatGPT
📰
How Artificial Intelligence Is Changing Everyday Life
Learn how AI is transforming everyday life, from voice assistants to personalized shopping recommendations, and why it matters for professionals
Medium · AI
Up next
How SpaceX Holds the World's Biggest Rocket
Silism
Watch →