{"id":269,"date":"2023-01-20T15:07:00","date_gmt":"2023-01-20T20:07:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/10\/19\/installing-google-analytics-on-your-website\/"},"modified":"2023-05-11T17:45:23","modified_gmt":"2023-05-11T21:45:23","slug":"installing-google-analytics-on-your-website","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/","title":{"rendered":"Installing Google Analytics on Your Website"},"content":{"rendered":"<p>At this point, you should have <a href=\"\/support\/website\/google-tools\/creating-google-analytics-account\/\">created a Google Account<\/a> and activated the service for Analytics. Google provides you with a code snippet to insert into every webpage you wish to track. This is important. You must have the code on every page you wish to track or you will not see results for pages the code is not inserted into.<\/p>\n\n\n\n<p>If you are managing multiple domains in Google Analytics you must get a different code for each website. At any time you need to get your Analytics code snippet, you can log into your Google Analytics account and retrieve it.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#access\">Accessing Your Google Tag<\/a><\/li>\n\n\n\n<li><a href=\"#add\">Add Google Analytics to Website (PHP or HTML)<\/a><\/li>\n\n\n\n<li><a href=\"#wordpress\">Adding Google Analytics to a WordPress Website<\/a><\/li>\n\n\n\n<li><a href=\"#verify\">Verifying that Google Analytics is Installed Correctly<\/a><\/li>\n<\/ul>\n\n\n\n<div class=\"alert alert-warning\" role=\"alert\"><strong>Note:<\/strong> If you are still using Universal Analytics (UA) it is being phased out by Google on July 1, 2023. Due to this, we recommend following our guide <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/how-to-migrate-to-google-analytics-4-from-ua\/\">How to Migrate to Google Analytics 4 From UA<\/a>.<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"access\">Accessing Your Google Tag<\/h2>\n\n\n\n<p>The location of your Google tag code can differ based on the type of account you have, Google Analytics 4 (GA4), or Universal Analytics (UA).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Access GA4 Tag<\/h3>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Login to Google Analytics.<\/li>\n\n\n\n<li>Click the gear cog on the bottom left of the screen to access the <strong>Admin<\/strong> section.<\/li>\n\n\n\n<li>Under the <em>Property<\/em> section, you may have to click the drop-down box to select the correct property.<\/li>\n\n\n\n<li>Click the <strong>Data Streams<\/strong> option under your property.<\/li>\n\n\n\n<li>Click your site that should be listed.<br><img decoding=\"async\" width=\"1024\" height=\"217\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725-1024x217.png\" class=\"optimized-lcp-image\" alt=\"Selecting Your Website Data Stream in Google Analytics 4 (GA4)\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725-1024x217.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725-300x64.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725-768x163.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png 1091w\"><\/li>\n\n\n\n<li>Scroll down and click the <strong>View tag instructions<\/strong> link under <em>Google tag<\/em>.<\/li>\n\n\n\n<li>Click the <strong>Install manually<\/strong> option.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"150\" class=\"wp-image-102598\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1726.png\" alt=\"Accessing Your Google Analytics 4 Tag\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1726.png 923w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1726-300x60.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1726-768x154.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n\n\n\n<li>You will then see your Google tag listed and can copy it to insert into your site\u2019s code. <\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Access UA Google Tag<\/h3>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Login to Google Analytics.<\/li>\n\n\n\n<li>Click the <strong>Admin<\/strong> link on the bottom left of the screen. It looks like a gear cog.<\/li>\n\n\n\n<li>Under the <em>Property<\/em> section, you may have to click the drop-down box to select the correct property.<\/li>\n\n\n\n<li>Click the <strong>Tracking Info<\/strong> link under the one you are setting up.<\/li>\n\n\n\n<li>Click the <strong>Tracking Code<\/strong> link and you will see your <em>Global Site Tag<\/em> displayed.<\/li>\n\n\n\n<li>Click inside the tracking code box and it will automatically select all the text. You can then click Ctrl+C or right-click and select <strong>Copy<\/strong>.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"336\" class=\"wp-image-102515\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1715.png\" alt=\"Google Analytics - Copying Global Site Tag\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1715.png 684w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1715-300x134.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"add\">Add Google Analytics to Website (PHP or HTML)<\/h2>\n\n\n\n<p>In the next step, you need to paste the code into the webpage. Depending on how your website is built will determine how you insert the code. You will insert the code snippet between the &lt;head&gt; and the &lt;\/head&gt; tags whether or not your website is built with PHP or HTML.<\/p>\n\n\n\n<p>If your website is built with PHP and you are dynamically building the headers with a separate file, you will need to insert the code into that file. \u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"400\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1724.png\" alt=\"Head Section in an HTML File\" class=\"wp-image-102596\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1724.png 966w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1724-300x124.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1724-768x318.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<div style=\"clear: both;\">\u00a0<\/div>\n\n\n\n<p>Open your HTML document in an editor (there\u2019s one included in file manager of cPanel). For more information on <a href=\"\/support\/edu\/cpanel\/using-file-manager-in-cpanel\/\">using file manager in cPanel<\/a> please read our article. Once the file is opened, find the closing &lt;\/head&gt; tag. Insert the code snippet BEFORE the closing &lt;\/head&gt; tag.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"485\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1727.png\" alt=\"Adding Google Tag to Your HTML\" class=\"wp-image-102600\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1727.png 914w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1727-300x159.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1727-768x408.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<div style=\"clear: both;\">\u00a0<\/div>\n\n\n\n<p>Save the page and <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-upload-files-server\/\">upload<\/a> it if you are editing it on your local computer. If you are using file manager you do not need to do anything besides saving the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wordpress\">Adding Google Analytics to a WordPress Website<\/h2>\n\n\n\n<p>There are 3 ways to install <a href=\"https:\/\/www.inmotionhosting.com\/support\/product-guides\/wordpress-hosting\/wordpress-google-analytics-guide\/\">Google analytics in WordPress<\/a>. All of which are relatively easy to do. We\u2019ll go over each one. If you are uncomfortable with editing the HTML or PHP code directly, we recommend using the plugin method.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add Google Analytics with a Plugin<\/h3>\n\n\n\n<p>There are tons of plugins available to add Google Analytics to your site. Here are guides for some of the plugins we recommend:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/connecting-with-google-analytics-in-jetpack\/\">Connecting with Google Analytics in Jetpack<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/google-tools\/google-analytics-2\/\">How to Set up Google Analytics in All in One SEO Pack<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/google-analytics-monsterinsights\/\">How to Install Google Analytics for WordPress by MonsterInsights<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Direct Paste Method<\/b><\/h3>\n\n\n\n<p>Copy the code that you received from Google, and paste it in your theme\u2019s\u00a0<i>footer.php <\/i>right above the &lt;\/body&gt; tag.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Functions.php Method<\/b><\/h3>\n\n\n\n<p>Add the following code in your theme\u2019s\u00a0<i>functions.php<\/i> file and don\u2019t forget to paste your Google Analytics code here.<\/p>\n\n\n\n<pre>&lt;?php\nadd_action('wp_footer', 'add_googleanalytics');\nfunction add_googleanalytics() { ?&gt;\n\/\/ Paste your Google Analytics code from Step 6 here\n&lt;?php } ?&gt;<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Add to the WordPress Theme\u2019s Header<\/h3>\n\n\n\n<p>Another option is to add the google tracking code to the WordPress themes header via the WordPress Dashboard. This option is covered in-depth in our full guide:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\">How to Google Analytics to WordPress Without a plugin<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Add Google Analytics to Forms<\/h3>\n\n\n\n<p>You can also track and review data for forms on your website.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/product-guides\/weforms\/how-to-integrate-google-analytics-in-weforms\/\">How to Integrate Google Analytics in weForms<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"verify\">Verifying that Google Analytics is Installed Correctly<\/h2>\n\n\n\n<p>After setting up Google Analytics with your website, you can verify it is connected successfully by checking if your data stream is working.<\/p>\n\n\n\n<div class=\"alert alert-warning\" role=\"alert\"><strong>Note: <\/strong>It can take up to 48 hours for Google Analytics to verify your site is connected successfully and to begin displaying data.<\/div>\n\n\n\n<ol class=\"article_list wp-block-list\">\n<li>Login to Google Analytics with the account that is associated with your site.<\/li>\n\n\n\n<li>Click the <strong>Admin<\/strong> gear cog on the bottom left of the page.<\/li>\n\n\n\n<li>You should then see your website \u201c<em>Property<\/em>\u201d list in the middle of the page. If you have more than one, you may have to click the drop-down box to select the one you are checking.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"188\" class=\"wp-image-102535\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1716.png\" alt=\"Accessing Your Property List in Google Analytics\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1716.png 1082w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1716-300x75.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1716-1024x256.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1716-768x192.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n\n\n\n<li>Under the \u201c<em>Property<\/em>\u201d click the <strong>Data Streams<\/strong> link.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"255\" class=\"wp-image-102536\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1717.png\" alt=\"Viewing Data Streams in Google Analytics\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1717.png 953w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1717-300x102.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1717-768x261.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><br>When you first check your data stream, it may show a message stating \u201c<em>No data received in past 48 hours.<\/em>\u201d Here is what it will look like:<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"168\" class=\"wp-image-102537\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1718.png\" alt=\"Viewing Data Stream in Google Analytics\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1718.png 1132w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1718-300x67.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1718-1024x229.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1718-768x172.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><br><br>Once Google Analytics is connected successfully you\u2019ll see a message stating \u201c<em>Receiving traffic in the past 48 hours<\/em>\u201c.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"156\" class=\"wp-image-102606\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1728.png\" alt=\"Receiving Traffic in Google Analytics\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1728.png 824w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1728-300x62.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1728-768x159.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p>Once the code is added to all of your web pages, you are finished with the installation part of getting started using Google Analytics. Now, it\u2019s time to start using analytics.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At this point, you should have created a Google Account and activated the service for Analytics. Google provides you with a code snippet to insert into every webpage you wish to track. This is important. You must have the code on every page you wish to track or you will not see results for pages<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\"> Read More ><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4321],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-analytics"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing Google Analytics on your Website<\/title>\n<meta name=\"description\" content=\"Learn how to insert the Google Analytics code into your website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Google Analytics on your Website\" \/>\n<meta property=\"og:description\" content=\"Learn how to insert the Google Analytics code into your website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-20T20:07:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-11T21:45:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\"},\"headline\":\"Installing Google Analytics on Your Website\",\"datePublished\":\"2023-01-20T20:07:00+00:00\",\"dateModified\":\"2023-05-11T21:45:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\"},\"wordCount\":978,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png\",\"articleSection\":[\"Web Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\",\"name\":\"Installing Google Analytics on your Website\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png\",\"datePublished\":\"2023-01-20T20:07:00+00:00\",\"dateModified\":\"2023-05-11T21:45:23+00:00\",\"description\":\"Learn how to insert the Google Analytics code into your website.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png\",\"width\":1091,\"height\":231,\"caption\":\"Selecting Your Website Data Stream in Google Analytics 4 (GA4)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Google Analytics on Your Website\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Google Analytics on your Website","description":"Learn how to insert the Google Analytics code into your website.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/","og_locale":"en_US","og_type":"article","og_title":"Installing Google Analytics on your Website","og_description":"Learn how to insert the Google Analytics code into your website.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2023-01-20T20:07:00+00:00","article_modified_time":"2023-05-11T21:45:23+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png","type":"","width":"","height":""}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b"},"headline":"Installing Google Analytics on Your Website","datePublished":"2023-01-20T20:07:00+00:00","dateModified":"2023-05-11T21:45:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/"},"wordCount":978,"commentCount":6,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png","articleSection":["Web Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/","name":"Installing Google Analytics on your Website","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png","datePublished":"2023-01-20T20:07:00+00:00","dateModified":"2023-05-11T21:45:23+00:00","description":"Learn how to insert the Google Analytics code into your website.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/01\/Selection_1725.png","width":1091,"height":231,"caption":"Selecting Your Website Data Stream in Google Analytics 4 (GA4)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/analytics\/installing-google-analytics-on-your-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Installing Google Analytics on Your Website"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5fbfcaed32a2672fb83ab312f5b7237b","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/john-paul\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":33,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"predecessor-version":[{"id":102782,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/269\/revisions\/102782"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}