{"id":4207,"date":"2017-10-21T04:09:06","date_gmt":"2017-10-21T08:09:06","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2017\/10\/21\/install-google-analytics-wp-no-plugin\/"},"modified":"2026-01-22T11:02:38","modified_gmt":"2026-01-22T16:02:38","slug":"install-google-analytics-wp-no-plugin","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/","title":{"rendered":"How to Google Analytics to WordPress Without a Plugin"},"content":{"rendered":"<p>Google Analytics is one of the most powerful tools you can add to your toolbox for tracking your website activity. It is the most widely used tool and it\u2019s free for the basic features. If you\u2019re using WordPress, this tool is very easy to install without a plugin. When you have added Google Analytics you will be able to track data, produce charts and reports that reflect your WordPress site\u2019s activity.<\/p>\n\n\n<div class=\"imh-youtube-embed\">\n\t\t\t<iframe src=\"https:\/\/www.youtube.com\/embed\/OboYOiDbLrQ\" title=\"How to Google Analytics to WordPress Without a Plugin\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n\t\t\t<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"VideoObject\",\"name\":\"How to Google Analytics to WordPress Without a Plugin\",\"description\":\"Learn How to Add Google Analytics to a WordPress Site by Editing the Theme&#039;s Header File.\",\"uploadDate\":\"2020-10-19\",\"thumbnailUrl\":\"https:\/\/img.youtube.com\/vi\/OboYOiDbLrQ\/hqdefault.jpg\"}<\/script>\n\t\t<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Add Google Analytics for WordPress without using a plugin<\/h2>\n\n\n\n<p class=\"alert alert-danger\">Google Analytics requires that you add code to your theme files. As with any change made to your site, it is highly recommended that you perform a full backup of the site so that you can recover should anything unexpected happen during the installation process.<\/p>\n\n\n\n<p>Your first step will be to obtain the tracking code within Google Analytics. This means that you must have <a href=\"https:\/\/support.google.com\/analytics\/answer\/1008015?hl=en&amp;ref_topic=3544906\" target=\"_blank\" rel=\"noopener noreferrer\">created a Google Analytics account<\/a>. Then you must have already set up<a href=\"https:\/\/support.google.com\/analytics\/answer\/1042508\" target=\"_blank\" rel=\"noopener noreferrer\" data-wplink-edit=\"true\">\u00a0a property (your website)<\/a> so that Google Analytics will be able to track it. If you have already completed these steps, then you can begin the steps below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Obtain the Google Tracking code<\/h3>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/1009692?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">Login to Google Analytics<\/a><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"1024\" height=\"619\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon-1024x619.png\" class=\"optimized-lcp-image\" alt=\"Click on Admin icon\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon-1024x619.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon-300x181.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon-768x464.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png 1425w\"><\/a><\/figure>In the menu at left scroll down until you see the gear icon that is used for the <strong>Admin <\/strong>section. Click on this section.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-choose-website.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-choose-website.png\" alt=\"Select website to be tracked\"><\/a><\/figure>Select the property (website) that you wish to track by clicking on the drop-down menu under the property section.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-tracking-info-1.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-tracking-info-1.png\" alt=\"Click on Tracking Info section\"><\/a><\/figure>Under the column, you will see an option labeled Tracking Info. Click on <strong>Tracking Info<\/strong>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-tracking-info-2.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-tracking-info-2.png\" alt=\"Click on Tracking Code\"><\/a><\/figure>This will bring up another set of options. Click on the one labeled <b>Tracking Code<\/b>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-tracking-code.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-tracking-code.png\" alt=\"Copy code\"><\/a><\/figure>A column of text will appear on the right with your <em>Tracking ID<\/em>, <em>Status<\/em> and then a <em>Website Tracking<\/em> section. You will see a window with the <strong>Global Site tag<\/strong> (<em>gtag.js<\/em>) Copy this text and then go to your WordPress site.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Apply the Google Tracking Code into the WordPress theme\u2019s header<\/h3>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li>Log into the WordPress Administrator<\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_wp-theme-editor.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_wp-theme-editor.png\" alt=\"Click on Appearance\"><\/a><\/figure>Click on <strong>Appearance<\/strong> and then click on <strong>Editor<\/strong>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_wp-select-header-php-file.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_wp-select-header-php-file.png\" alt=\"Find header.php\"><\/a><\/figure>A typical WordPress theme will have a <strong>Theme Header (header.php)<\/strong>. Find this file in the list at right, then click on the file link. It will open the file in the editor. <em>If you have a theme where the file doesn\u2019t seem to have a header.php file, then contact the theme\u2019s developer for assistance.<\/em><br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_wp-theme-code-added.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_wp-theme-code-added.png\" alt=\"Paste tracking code and save\"><\/a><\/figure>Paste the Global Site Tag (gtag.js) code that you copied earlier into the <strong>header.php<\/strong> file above the \u201c&lt;\/head&gt;\u201d tag in the header.php file.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li>Click on <strong>Update File<\/strong> in order to save the code changes.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">BoldGrid users \u2013 how to add the Google Tracking Code to your theme\u2019s header<\/h3>\n\n\n\n<p>The BoldGrid plugin can affect how the menus appear. Please refer to the directions below to properly add the code to the header section of your BoldGrid site.<\/p>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li><a href=\"\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into the WordPress Administrator<\/a>.<\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-1.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-1.png\" alt=\"Click on Customize\"><\/a><\/figure>Click on <strong>Customize<\/strong>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-2.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-2.png\" alt=\"Click on Advanced\"><\/a><\/figure>Click on <strong>Advanced<\/strong>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-3.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-3.png\" alt=\"Click on Header Settings\"><\/a><\/figure>Click on <strong>Header Settings<\/strong>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-4.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-4.png\" alt=\"Paste the tracking code\"><\/a><\/figure>In the field provided under Custom Header HTML paste the <strong>Global Site Tag (gtag.js) code<\/strong>.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n\n\n\n<li><figure><a href=\"\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-5.png\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"100\" align=\"right\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_boldgrid-customize-5.png\" alt=\"Save the changes and publish\"><\/a><\/figure>Then click on <strong>Save &amp; Publish<\/strong> button at the top of the column in order to save your changes.<br><div style=\"clear: both;\">\u00a0<\/div><br><\/li>\n<\/ol>\n\n\n\n<p>Once you have completed adding the code and saving it, then the website is ready to be tracked with Google Analytics. For more information on using Google Analytics, please see the <a href=\"https:\/\/support.google.com\/analytics#topic=3544906\" target=\"_blank\" rel=\"noopener noreferrer\">Google Analytics Help Center<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics is one of the most powerful tools you can add to your toolbox for tracking your website activity. It is the most widely used tool and it&#8217;s free for the basic features. If you&#8217;re using WordPress, this tool is very easy to install without a plugin. When you have added Google Analytics you<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"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,56],"tags":[],"class_list":["post-4207","post","type-post","status-publish","format-standard","hentry","category-analytics","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add Google Analytics Without Using a Plugin | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to install Google Analytics for your WordPress site without using a plugin\" \/>\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\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Google Analytics Without Using a Plugin | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to install Google Analytics for your WordPress site without using a plugin\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\" \/>\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=\"2017-10-21T08:09:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-22T16:02:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"How to Google Analytics to WordPress Without a Plugin\",\"datePublished\":\"2017-10-21T08:09:06+00:00\",\"dateModified\":\"2026-01-22T16:02:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\"},\"wordCount\":622,\"commentCount\":9,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png\",\"articleSection\":[\"Web Analytics\",\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\",\"name\":\"How to Add Google Analytics Without Using a Plugin | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png\",\"datePublished\":\"2017-10-21T08:09:06+00:00\",\"dateModified\":\"2026-01-22T16:02:38+00:00\",\"description\":\"Learn how to install Google Analytics for your WordPress site without using a plugin\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png\",\"width\":1425,\"height\":861,\"caption\":\"Click on Admin icon\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Google Analytics to WordPress Without a Plugin\"}]},{\"@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\/8d626175dd3b70ee90a172bdb09a460b\",\"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\/arn\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Google Analytics Without Using a Plugin | InMotion Hosting","description":"Learn how to install Google Analytics for your WordPress site without using a plugin","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\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Analytics Without Using a Plugin | InMotion Hosting","og_description":"Learn how to install Google Analytics for your WordPress site without using a plugin","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2017-10-21T08:09:06+00:00","article_modified_time":"2026-01-22T16:02:38+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"How to Google Analytics to WordPress Without a Plugin","datePublished":"2017-10-21T08:09:06+00:00","dateModified":"2026-01-22T16:02:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/"},"wordCount":622,"commentCount":9,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png","articleSection":["Web Analytics","WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/","name":"How to Add Google Analytics Without Using a Plugin | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png","datePublished":"2017-10-21T08:09:06+00:00","dateModified":"2026-01-22T16:02:38+00:00","description":"Learn how to install Google Analytics for your WordPress site without using a plugin","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/google-analytics-no-plugin_ga-admin-icon.png","width":1425,"height":861,"caption":"Click on Admin icon"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/install-google-analytics-wp-no-plugin\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Google Analytics to WordPress Without a Plugin"}]},{"@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\/8d626175dd3b70ee90a172bdb09a460b","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\/arn\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":56,"name":"WordPress Tutorials","slug":"wordpress","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4207","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4207"}],"version-history":[{"count":9,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4207\/revisions"}],"predecessor-version":[{"id":131505,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4207\/revisions\/131505"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}