{"id":180683,"date":"2021-02-17T16:00:44","date_gmt":"2021-02-17T13:00:44","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-set-up-google-analytics-for-a-wordpress-site-cloudsavvy-it\/"},"modified":"2021-02-17T16:00:44","modified_gmt":"2021-02-17T13:00:44","slug":"how-to-set-up-google-analytics-for-a-wordpress-site-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-set-up-google-analytics-for-a-wordpress-site-cloudsavvy-it\/","title":{"rendered":"#How To Set Up Google Analytics For a WordPress Site \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3cce9747b2f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3cce9747b2f\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-set-up-google-analytics-for-a-wordpress-site-cloudsavvy-it\/#Setting_Up_Google_Analytics\" >Setting Up Google Analytics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-set-up-google-analytics-for-a-wordpress-site-cloudsavvy-it\/#Enabling_Google_Analytics_In_WordPress\" >Enabling Google Analytics In WordPress<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How To Set Up Google Analytics For a WordPress Site \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<figure style=\"width: 1000px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4044 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/bcc25d63f6d868090b4f6b7e1d1b3b67\/p\/uploads\/2017\/08\/94f2fdd6-e1583348245450.png\" alt=\"WordPress Logo Dark Mode\" width=\"1000\" height=\"465\" data-crediturl=\"https:\/\/wordpress.org\/about\/logos\/\" data-credittext=\"WordPress\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/wordpress.org\/about\/logos\/\">WordPress<\/a><\/span><\/figcaption><\/figure>\n<p>Google Analytics is a powerful tool for collecting and viewing metrics on page views, user behavior, and other useful data. Best part is, it\u2019s entirely free to use, so there\u2019s no reason not to set it up for your website.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Setting_Up_Google_Analytics\"><\/span>Setting Up Google Analytics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Head over to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/marketingplatform.google.com\/about\/analytics\/\">the Google Analytics dashboard<\/a> and sign in. If it\u2019s your first time using it, you can simply click \u201cStart Measuring\u201d to set it up. If you have an existing site, and want\u00a0 to add another, you\u2019ll need to click the settings icon in the bottom left and click \u201cCreate Account\u201d to add a new one.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9684\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/73ac0bfc3b79123279462d880478cefe\/p\/uploads\/2021\/02\/fb882ab4.png\" alt=\"\" width=\"634\" height=\"587\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Creating an account will automatically create a \u201cProperty\u201d for you, which represents your site. You can have multiple properties per account, but just one is fine for a single site.<\/p>\n<p>To set up analytics, you\u2019ll need to connect your website with a data stream. You can do this from the settings menu by clicking \u201cData Streams\u201d &gt; \u201cWeb.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9686\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/2bc6731af9450c71fcd94e0162b38847\/p\/uploads\/2021\/02\/8f564f03.png\" alt=\"\" width=\"700\" height=\"267\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll need to enter your website URL, and a name for the stream. Don\u2019t worry, \u201cAdvanced Measurement\u201d is free.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9687\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/769f72b4a7d6424ae953d7c974fad988\/p\/uploads\/2021\/02\/d17223bb.png\" alt=\"\" width=\"700\" height=\"259\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>On the next screen, you\u2019ll be presented with your \u201cMEASUREMENT ID.\u201d You will need this to link it to WordPress.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Enabling_Google_Analytics_In_WordPress\"><\/span>Enabling Google Analytics In WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You have a few ways of adding the <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">script<\/a> to WordPress. If you\u2019re comfortable modding your site directly, you can simply add the tracking script to the <code>&lt;header&gt;<\/code>\u00a0of your site:<\/p>\n<pre>&lt;!-- Global site tag (gtag.js) - Google Analytics --&gt;&#13;\n&lt;script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=G-LE23FH7NGK\"&gt;&lt;\/script&gt;&#13;\n&lt;script&gt;&#13;\n  window.dataLayer = window.dataLayer || [];&#13;\n  function gtag(){dataLayer.push(arguments);}&#13;\n  gtag('js', new Date());&#13;\n&#13;\n  gtag('config', 'G-LE23FH7NGK');&#13;\n&lt;\/script&gt;<\/pre>\n<p>Otherwise, you can configure the analytics with a simple plugin. Head over to \u201cPlugins\u201d and click \u201cAdd New.\u201d Search for \u201cGoogle Analytics.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9689\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/3468c723daaf82cc84b63e7bfd4b434c\/p\/uploads\/2021\/02\/1bd5521e.png\" alt=\"\" width=\"700\" height=\"488\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>There are a couple good ones, but \u201cGA Google Analytics\u201d is basic and just adds the tag and tracking code with some configuration.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9690\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/0ecbac078b813832005f90b26d500c6b\/p\/uploads\/2021\/02\/152e9518.png\" alt=\"\" width=\"700\" height=\"334\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Install and activate it, and then paste in the <code>G-XXXXX..<\/code>\u00a0tracking code that Google gave you. The default configuration is fine, so just save changes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9691\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/a6f9b7ccebf82ae53c0eef598aa74931\/p\/uploads\/2021\/02\/87ffd1aa.png\" alt=\"\" width=\"700\" height=\"548\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You should now see the script in the footer\/header of your page\u2019s HTML. After 24-48 hours, you\u2019ll start to see entries in the Google Analytics console.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9692\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/3b3cf3161250685d4f9f5de65e77d5bc\/p\/uploads\/2021\/02\/82e9d2fb.png\" alt=\"\" width=\"700\" height=\"391\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/>\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/9683\/how-to-set-up-google-analytics-for-a-wordpress-site\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How To Set Up Google Analytics For a WordPress Site \u2013 CloudSavvy IT&#8221; WordPress Google Analytics is a powerful tool for collecting and viewing metrics on page views, user behavior, and other useful data. Best part is, it\u2019s entirely free to use, so there\u2019s no reason not to set it up for your website. Setting&#8230;<\/p>\n","protected":false},"author":1,"featured_media":180684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/bcc25d63f6d868090b4f6b7e1d1b3b67\/p\/uploads\/2017\/08\/94f2fdd6-e1583348245450.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-180683","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/180683","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=180683"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/180683\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/180684"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=180683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=180683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=180683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}