{"id":777,"date":"2016-03-17T23:03:09","date_gmt":"2016-03-17T23:03:09","guid":{"rendered":"http:\/\/blog.paranoidprofessor.com\/?p=777"},"modified":"2016-03-17T23:08:28","modified_gmt":"2016-03-17T23:08:28","slug":"analyzing-web-traffic","status":"publish","type":"post","link":"https:\/\/blog.paranoidprofessor.com\/index.php\/2016\/03\/17\/analyzing-web-traffic\/","title":{"rendered":"Analyzing web traffic"},"content":{"rendered":"<p>Are we alone in the universe?\u00a0 Well, that question is up for grabs but the question of am I alone on the Internet is quite answerable.\u00a0\u00a0 Simply Google any noun or term and it is easy to see that you are not alone.<\/p>\n<p>How to see if your web site is being visited is another question that Google can provide an answer for you &#8211; that solution is to use Google Analytics.<\/p>\n<p>Google analytics is a free service for tracking and reporting on the visitors to your site.\u00a0 According to <a href=\"https:\/\/en.wikipedia.org\/wiki\/Google_Analytics\" target=\"_blank\">wikipedia<\/a> it is the most widely used analytics on the Internet. Getting setup with Google analytics is really easy.\u00a0 Simply get a Google account and sign into the analytics site enter your web information and get assigned a tracking id.<\/p>\n<p>It is actually not difficult at all, go to the site, login and fill out the application with your websites information.<\/p>\n<p><a href=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-signup.png\" rel=\"attachment wp-att-791\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-791 size-full aligncenter\" src=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-signup.png\" alt=\"analytics-signup\" width=\"523\" height=\"461\" srcset=\"https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-signup.png 523w, https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-signup-300x264.png 300w\" sizes=\"(max-width: 523px) 100vw, 523px\" \/><\/a>There is a small piece of code that you will need to put into your php code so you are tracked.<\/p>\n<blockquote><p>&lt;script&gt;<br \/>\n(function(i,s,o,g,r,a,m){i[&#8216;GoogleAnalyticsObject&#8217;]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),<br \/>\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,&#8217;script&#8217;,&#8217;\/\/www.google-analytics.com\/analytics.js&#8217;,&#8217;ga&#8217;);<\/p>\n<p>ga(&#8216;create&#8217;, &#8216;UA-12359876-1&#8217;, &#8216;auto&#8217;);<br \/>\nga(&#8216;send&#8217;, &#8216;pageview&#8217;);<\/p>\n<p>&lt;\/script&gt;<\/p><\/blockquote>\n<p>There are a number of different sites giving an explanation of what you need to do in order that the analytics code is properly tracked.<\/p>\n<p>I don&#8217;t actually understand this snippit, but you can see near the end of the script that it contains your sites own code, UA-1235987-1 which in this example was given to us by Google, and is the key to how your statistics are being tracked.<\/p>\n<p>This actually isn&#8217;t my code, you should probably be careful about publishing your Google code other than via your web page code.<\/p>\n<p>Depending on your level of coding experience, what type of web site you have this is all the information that you need.\u00a0 If not take a quick look for some assistance via Google.<\/p>\n<p><strong>Who is out there<\/strong><\/p>\n<p>What is interesting is not entirely how many people are out there, but what information is apparently being tracked when you visit this or any other site with these analytics embedded in them.<\/p>\n<p>There are a lot of different things that can be tracked the most interesting thing was to view by location, browser\/operating system and language.<\/p>\n<p><a href=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-location-1.png\" rel=\"attachment wp-att-788\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-788 size-full\" src=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-location-1.png\" alt=\"analytics-location\" width=\"715\" height=\"823\" srcset=\"https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-location-1.png 715w, https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-location-1-261x300.png 261w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/a><\/p>\n<p>These seem to be pretty reasonable things to track, but I was also surprised to see without any special setup of the analytics it was also capable of tracking<\/p>\n<ul>\n<li>Screen resolution<\/li>\n<li>Screen colors (24bit vs 32bit)<\/li>\n<li>Flash version<\/li>\n<li>Java support<\/li>\n<li>type of device (desktop, etc)<\/li>\n<\/ul>\n<p>I was surprised to see that it was also possible to enable tracking by age and by sex.\u00a0 I didn&#8217;t intend to go any further to <del>invade the privacy of<\/del> investigate my viewers.\u00a0 I was however, pretty amazed at what can be tracked and how easy it is to get started.<\/p>\n<p><a href=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-browsers.png\" rel=\"attachment wp-att-785\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-785 size-medium\" src=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-browsers-300x292.png\" alt=\"analytics-browsers\" width=\"300\" height=\"292\" srcset=\"https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-browsers-300x292.png 300w, https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-browsers.png 715w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> \u00a0 \u00a0 \u00a0 \u00a0\u00a0 <a href=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-language.png\" rel=\"attachment wp-att-786\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-786\" src=\"http:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-language-266x300.png\" alt=\"analytics-language\" width=\"266\" height=\"300\" srcset=\"https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-language-266x300.png 266w, https:\/\/blog.paranoidprofessor.com\/wp-content\/uploads\/2016\/03\/analytics-language.png 679w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/a><\/p>\n<p>I did see some Windows users and I did see some Linux users, but no Apple users.\u00a0 I guess they aren&#8217;t my target audience.<\/p>\n<p>&nbsp;<\/p>\n<p>Here is some more information about Google Analytics.<\/p>\n<p><a href=\"https:\/\/support.google.com\/analytics\/answer\/1008015?hl=en&amp;ref_topic=3544906\">https:\/\/support.google.com\/analytics\/answer\/1008015?hl=en&amp;ref_topic=3544906<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are we alone in the universe?\u00a0 Well, that question is up for grabs but the question of am I alone on the Internet is quite answerable.\u00a0\u00a0 Simply Google any noun or term and it is easy to see that you &hellip; <a href=\"https:\/\/blog.paranoidprofessor.com\/index.php\/2016\/03\/17\/analyzing-web-traffic\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,3],"tags":[26,14,19,28],"_links":{"self":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/777"}],"collection":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/comments?post=777"}],"version-history":[{"count":6,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions\/793"}],"wp:attachment":[{"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/media?parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/categories?post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.paranoidprofessor.com\/index.php\/wp-json\/wp\/v2\/tags?post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}