{"id":2330,"date":"2016-11-16T23:28:30","date_gmt":"2016-11-17T07:28:30","guid":{"rendered":"https:\/\/www.fastwebhost.com\/blog\/?p=2330"},"modified":"2017-12-03T15:37:24","modified_gmt":"2017-12-03T23:37:24","slug":"how-to-add-google-analytics-to-your-wordpress-site","status":"publish","type":"post","link":"https:\/\/www.fastwebhost.com\/blog\/how-to-add-google-analytics-to-your-wordpress-site\/","title":{"rendered":"How to Add Google Analytics to Your WordPress Site"},"content":{"rendered":"<p><strong>What is Google Analytics?<\/strong><\/p>\n<p>Google Analytics is a free web analytics service offered by Google to help track and report website traffic. It is the most used web analytics service on the internet. By getting the Google Analytics for your WordPress site, you will be able to see where all your traffic is coming from, how visitors interact with your site\u00a0and learn what visitors are searching for in your site. <!--more-->On top of that you can also:<\/p>\n<ul>\n<li><strong>Discover your top content \u00a0<\/strong>This will help you know what articles and content make\u00a0visitors stay on your site the longest.<\/li>\n<li><strong>Figure out where your best visitors are located \u00a0<\/strong>Determining from where you get the most visitors from, helps you decide who you should target for your ads.<\/li>\n<li><strong>See what people click on the most\u00a0<\/strong>See what area of your site gets the most clicks to help you decide where you can place links that you want to be seen.<\/li>\n<li><strong>Find out what are your worst performing pages\u00a0<\/strong>Find out on which area of your site visitors exit out from the most.<\/li>\n<\/ul>\n<p><strong>How to\u00a0sign up with Google Analytics<\/strong><\/p>\n<p>In order to sign up with Google Analytics, you have to have a Gmail account. If you already have a Gmail account then you can start signing up on their\u00a0<a href=\"https:\/\/analytics.google.com\/analytics\/web\/provision\/?authuser=0#provision\/SignUp\/\" target=\"_blank\">signup page<\/a>.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"wp-image-2336 size-full aligncenter\" src=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/1.png\" width=\"303\" height=\"207\" srcset=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/1-200x137.png 200w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/1-300x205.png 300w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/1.png 303w\" sizes=\"(max-width: 303px) 100vw, 303px\" \/><\/p>\n<p>Press the signup button to be directed to the next screen. This screen is where you can start putting in your information. You can choose to track a website or a mobile app and you have to fill in your website name and URL. When you\u2019re done filling in all the information click on the \u201c<strong>get tracking id<\/strong>\u201d button to get your tracking id. Copy and save your tracking code once you get to the next window, it will be in the box like the one below:<\/p>\n<p>Copy and save your tracking code once you get to the next window, it will be in the box like the one below:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"wp-image-2335 size-full aligncenter\" src=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/2.png\" width=\"658\" height=\"306\" srcset=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/2-200x93.png 200w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/2-300x140.png 300w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/2-400x186.png 400w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/2-600x279.png 600w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/2.png 658w\" sizes=\"(max-width: 658px) 100vw, 658px\" \/><\/p>\n<p><strong>Installing Google Analytics to your WordPress<\/strong><\/p>\n<p>You can install Google Analytics through a plugin or through your Theme Header (header.php)<\/p>\n<p><strong>Plugin Method<br \/>\n<\/strong>There are various plugins you can install. I will \u00a0be using the Google Analytics plugin. This plugin will allow me to install my tracking ID once I\u2019ve installed it. To put in your tracking code once you\u2019re finished installing it go to your dashboard, S<strong>ettings &gt; Google Analytics.\u00a0<\/strong>From there you can put in your tracking code and choose if you want to exclude other users from viewing tracking.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2334 aligncenter\" src=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/3.png\" alt=\"\" width=\"617\" height=\"275\" srcset=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/3-200x89.png 200w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/3-300x134.png 300w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/3-400x178.png 400w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/3-600x267.png 600w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/3.png 617w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p><strong>Theme Header (header.php) Method<br \/>\n<\/strong>To install your tracking code go to your dashboard, <strong>Appearance&gt; Editor.\u00a0<\/strong>Once you\u2019re on that screen, go to the right side of the screen and locate the Theme Header link.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2333 aligncenter\" src=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/4.png\" alt=\"\" width=\"175\" height=\"421\" srcset=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/4-125x300.png 125w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/4.png 175w\" sizes=\"(max-width: 175px) 100vw, 175px\" \/><\/p>\n<p>On the next screen, locate the \u201c<strong>&lt;\/ head &gt;<\/strong>&#8221; tag. You will put your tracking code right before this tag:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2332\" src=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/5.png\" alt=\"\" width=\"559\" height=\"210\" srcset=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/5-200x75.png 200w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/5-300x113.png 300w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/5-400x150.png 400w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/5.png 559w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><br \/>\nAfter putting in your tracking code press the \u201c<strong>update file<\/strong>\u201d button to save changes. You can now check your Google Analytics \u201c<strong>Reporting<\/strong>\u201d area to view your site\u2019s analytics. It takes Google 12-24 hours to start reporting actual traffic data.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-2331\" src=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/6.png\" alt=\"6\" width=\"495\" height=\"252\" srcset=\"https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/6-200x102.png 200w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/6-300x153.png 300w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/6-400x204.png 400w, https:\/\/www.fastwebhost.com\/blog\/wp-content\/uploads\/6.png 495w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics is a free web analytics service offered by Google to help track and report website traffic. It is the most used web analytics service on the internet. By getting the Google Analytics for your WordPress site, you will be able to see where all your traffic is coming from, how visitors interact with your site and learn what visitors are searching for in your site.<\/p>\n","protected":false},"author":2,"featured_media":2343,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[70],"tags":[112],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/posts\/2330"}],"collection":[{"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/comments?post=2330"}],"version-history":[{"count":5,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/posts\/2330\/revisions"}],"predecessor-version":[{"id":2344,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/posts\/2330\/revisions\/2344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/media\/2343"}],"wp:attachment":[{"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/media?parent=2330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/categories?post=2330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastwebhost.com\/blog\/wp-json\/wp\/v2\/tags?post=2330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}