{"id":62852,"date":"2020-11-03T09:06:48","date_gmt":"2020-11-03T14:06:48","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=62852"},"modified":"2026-01-22T11:14:31","modified_gmt":"2026-01-22T16:14:31","slug":"how-to-add-google-analytics-to-wordpress","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/","title":{"rendered":"How to Add Google Analytics to WordPress"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-1024x538.jpg\" alt=\"\" class=\"wp-image-62928\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-1024x538.jpg 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-300x158.jpg 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-768x403.jpg 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Google Analytics is one of the most used website statistics applications on the internet. You can easily find Google Analytics specific plugins that make it easy for you to integrate the application into your WordPress website.  There is also the option to add Google Analytics directly to your WordPress site without using a plugin. These guides can help you make use of Google Analytics for tracking your <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-install-and-set-up-hotjar-for-wordpress-hosting\/\">WordPress site statistics<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#with-plugin\">Install Google Analytics to WordPress with a Plugin<\/a><\/li>\n\n\n\n<li><a href=\"#without-plugin\">Install Google Analytics to WordPress without a Plugin<\/a><\/li>\n\n\n\n<li><a href=\"#boldgrid-tracking\">How to Add the Google Analytics Tracking Code in BoldGrid<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\">\n\n\n\n<p class=\"alert alert-info\">Want a better home for your WordPress site? Check out InMotion\u2019s <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\" rel=\"follow\" \"title=\"Use InMotion's WordPress Hosting\">WordPress Hosting<\/a> for secure, optimized servers that are configured for your budget needs.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"with-plugin\">How Do I Add Google Analytics to WordPress Using a Plugin?<\/h2>\n\n\n\n<p>WordPress provides different options to measure its performance, but Google Analytics is the most used option for checking the statistics of your website. Google Analytics can be installed without a plugin but this tutorial will demonstrate how you can install it using a Google Analytics plugin. There are many <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/connecting-with-google-analytics-in-jetpack\/\">Google Analytics plugins<\/a>, but the one used in this tutorial will be the <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/google-analytics-dashboard-for-wp\/\" target=\"_blank\">Google Analytics Dashboard for WP<\/a>. It provides you access to the Google Analytics data without having to leave the WordPress Administrator interface.<\/p>\n\n\n<h2>Installing the Plugin for Google Analytics \u2013 Google Analytics Dashboard for WP<\/h2>\n<ol class=\"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<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-plugins-menu.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-plugins-menu.png\" alt=\"Click on plugins\" width=\"100\" align=\"right\"><\/a>Click on <strong>Plugins<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-plugins-add-new.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-plugins-add-new.png\" alt=\"Click on Add New\" width=\"100\" align=\"right\"><\/a>Click on <strong>Add New<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_find-google-analytics-plugin.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_find-google-analytics-plugin.png\" alt=\"Search for Google Analytics dashboard plugin\" width=\"100\" align=\"right\"><\/a>Search for the plugin that we will be using in this tutorial \u2013 <strong>Google Analytics Dashboard for WP<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-install.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-install.png\" alt=\"Select install now\" width=\"100\" align=\"right\"><\/a>When you see the plugin option appear, click on the <strong>Install Now<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-activate.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-activate.png\" alt=\"Activate plugin\" width=\"100\" align=\"right\"><\/a>Click on <strong>Activate<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<\/ol>\n<h3>How to Authorize the Plugin to connect to Google Analytics<\/h3>\n<p>Once the plugin has been installed, the next part is to authorize the plugin to connect to Google Analytics.<\/p>\n<ol class=\"article_list\">\n<li>If you are not <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/logging-into-wordpress-dashboard\/\" target=\"_blank\" rel=\"noopener noreferrer\">logged in to the WordPress Administrator, log in<\/a>.<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-configuration-page.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-configuration-page.png\" alt=\"Google Analytics in menu\" width=\"100\" align=\"right\"><\/a>With the plugin installed, you will see the option for <strong>Google Analytics<\/strong> on the menu. Click on <strong>Google Analytics<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-authorize.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-authorize.png\" alt=\"Click on Authroize plugin\" width=\"100\" align=\"right\"><\/a>You will be brought to the Google Analytics Settings page. Click on <strong>Authorize Plugin<\/strong> in order to start the plugin authorization process.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-get-access-code-link.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-get-access-code-link.png\" alt=\"Click on Get access code link\" width=\"100\" align=\"right\"><\/a>You will see the Google Analytics Settings page. You will see a link labeled <strong>Get Access Code<\/strong>. Click on this link.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-choose-account.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-choose-account.png\" alt=\"Connect to Google Account\" width=\"100\" align=\"right\"><\/a>It will attempt to login to your Google Account. You will need to select the appropriate account.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-allow-access.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-allow-access.png\" alt=\"Click to Allow access to Analytics\" width=\"100\" align=\"right\"><\/a>Once you have selected the account there will be a window asking for you approval to allow access to Google Analytics. Click on the <strong>Allow<\/strong> button to proceed.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-authorization-code.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-authorization-code.png\" alt=\"Copy Access Code\" width=\"100\" align=\"right\"><\/a>Copy the code that you see next.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-add-access-code.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-add-access-code.png\" alt=\"Paste Access Code\" width=\"100\" align=\"right\"><\/a>Go back to your WordPress site and paste the code into the <strong>Access Code<\/strong> field.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-save-access-code.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-save-access-code.png\" alt=\"Save Access code\" width=\"100\" align=\"right\"><\/a>Click on <strong>Save Access Code<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-authorized.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-authorized.png\" alt=\"Select website to track and make settings changes if needed\" width=\"100\" align=\"right\"><\/a>You will then be brought to the <strong>General Settings<\/strong> page. Select the account that you wish to track if you have multiple accounts. Make any settings changes if need.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-save-changes.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-plugin-save-changes.png\" alt=\"Save changes\" width=\"100\" align=\"right\"><\/a>Click on <strong>Save Changes<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<\/ol>\n<p>That completes the plugin authorization. You will need to add the tracking code to your website in order for Google Analytics to track your website activity. Follow the steps below to add the tracking code.<\/p>\n<h2>Adding the Google Analytics Tracking Code to your WordPress Website without a Plugin<\/h2>\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<h3>Obtain the Google Tracking code<\/h3>\n<ol class=\"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<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-admin-icon.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-admin-icon.png\" alt=\"Click on Admin icon\" width=\"100\" align=\"right\"><\/a>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.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-choose-website.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-choose-website.png\" alt=\"Select website to be tracked\" width=\"100\" align=\"right\"><\/a>Select the property (website) that you wish to track by clicking on the drop-down menu under the property section.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-tracking-info-1.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-tracking-info-1.png\" alt=\"Click on Tracking Info section\" width=\"100\" align=\"right\"><\/a>Under the column, you will see an option labeled Tracking Info. Click on <strong>Tracking Info<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-tracking-info-2.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-tracking-info-2.png\" alt=\"Click on Tracking Code\" width=\"100\" align=\"right\"><\/a>This will bring up another set of options. Click on the one labeled Tracking Code.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-tracking-code.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_ga-tracking-code.png\" alt=\"Copy code\" width=\"100\" align=\"right\"><\/a>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.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<\/ol>\n<h3>Apply the Google Tracking Code into the WordPress theme\u2019s header<\/h3>\n<ol class=\"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<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-theme-editor.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-theme-editor.png\" alt=\"Click on Appearance\" width=\"100\" align=\"right\"><\/a>Click on <strong>Appearance<\/strong> and then click on <strong>Editor<\/strong>.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-select-header-php-file.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-select-header-php-file.png\" alt=\"Find header.php\" width=\"100\" align=\"right\"><\/a>A typical WordPress theme will have a <strong>Theme Header (header.php)<\/strong>. Find this file in the list at the 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>\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li><a href=\"\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-theme-code-added.png\" rel=\"lightbox-0\"><img decoding=\"async\" class=\"std_ss\" style=\"float: right; margin: 0px 0px 15px 15px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2017\/10\/wp-ga-plugin_wp-theme-code-added.png\" alt=\"Paste tracking code and save\" width=\"100\" align=\"right\"><\/a>Paste the Global Site Tag (gtag.js) code that you copied earlier into the <strong>header.php<\/strong> file above the \u201c&lt;\/head&amp;rt\u201d tag in the header.php file.\n<div style=\"clear: both;\">\u00a0<\/div>\n<\/li>\n<li>Click on <strong>Update File<\/strong> in order to save the code changes.<\/li>\n<\/ol>\n<p>Once you\u2019ve finished adding the tracking code into your theme header then you be ready to start using Google Analytics with your website. Next, we will provide more information on installing Google Analytics without using a plugin.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"without-plugin\">How to Use Google Analytics on your WordPress site without a Plugin<\/h2>\n\n\n\n<p>If you\u2019re using WordPress, it is possible and easy to add Google Analytics to your website without using a plugin. When you have added Google Analytics to your site you will be able to track data, produce charts and reports directly from the Google Analytics application.<\/p>\n\n\n<div class=\"imh-youtube-embed\">\n\t\t\t<iframe src=\"https:\/\/www.youtube.com\/embed\/OboYOiDbLrQ\" title=\"How to Use Google Analytics on Your WordPress Site 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 Use Google Analytics on Your WordPress Site 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<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=\"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-admin-icon.png\" alt=\"Click on Admin icon\"><\/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<p>When you have finished adding the tracking code to your theme header, then you\u2019re ready to start using Google Analytics to track your website.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"boldgrid-tracking\">BoldGrid users \u2013 how to add the Google Tracking Code to your theme\u2019s header<\/h2>\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 saved 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\/answer\/1008015?hl=en\" target=\"_blank\" rel=\"noopener noreferrer\">Getting Started with Google Analytics<\/a>. For further information on the use of the Google Analytics Dashboard plugin, please see this <a href=\"https:\/\/deconf.com\/google-analytics-dashboard-wordpress\/?utm_source=gadwp_config&amp;utm_medium=link&amp;utm_content=top_tutorial&amp;utm_campaign=gadwp\" target=\"_blank\" rel=\"noopener noreferrer\">tutorial<\/a> or <a href=\"https:\/\/deconf.com\/google-analytics-dashboard-wordpress\/?utm_source=gadwp_config&amp;utm_medium=link&amp;utm_content=top_video&amp;utm_campaign=gadwp\" target=\"_blank\" rel=\"noopener noreferrer\">video<\/a>.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Analytics is one of the most used website statistics applications on the internet. You can easily find Google Analytics specific plugins that make it easy for you to integrate the application into your WordPress website. There is also the option to add Google Analytics directly to your WordPress site without using a plugin. These<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\"> Read More ><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-62852","post","type-post","status-publish","format-standard","hentry","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 to WordPress<\/title>\n<meta name=\"description\" content=\"Learn how to add Google Analytics with a plugin or without. You&#039;ll see the steps to add GA through a video and screen shots along with explicit instructions.\" \/>\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\/how-to-add-google-analytics-to-wordpress\/\" \/>\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 to WordPress\" \/>\n<meta property=\"og:description\" content=\"Learn how to add Google Analytics with a plugin or without. You&#039;ll see the steps to add GA through a video and screen shots along with explicit instructions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\" \/>\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=\"2020-11-03T14:06:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-22T16:14:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"14 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\/how-to-add-google-analytics-to-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b\"},\"headline\":\"How to Add Google Analytics to WordPress\",\"datePublished\":\"2020-11-03T14:06:48+00:00\",\"dateModified\":\"2026-01-22T16:14:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\"},\"wordCount\":115,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-1024x538.jpg\",\"articleSection\":[\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\",\"name\":\"How to Add Google Analytics to WordPress\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-1024x538.jpg\",\"datePublished\":\"2020-11-03T14:06:48+00:00\",\"dateModified\":\"2026-01-22T16:14:31+00:00\",\"description\":\"Learn how to add Google Analytics with a plugin or without. You'll see the steps to add GA through a video and screen shots along with explicit instructions.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Google Analytics to WordPress\"}]},{\"@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 to WordPress","description":"Learn how to add Google Analytics with a plugin or without. You'll see the steps to add GA through a video and screen shots along with explicit instructions.","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\/how-to-add-google-analytics-to-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Analytics to WordPress","og_description":"Learn how to add Google Analytics with a plugin or without. You'll see the steps to add GA through a video and screen shots along with explicit instructions.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-11-03T14:06:48+00:00","article_modified_time":"2026-01-22T16:14:31+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg","type":"image\/jpeg"}],"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":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/8d626175dd3b70ee90a172bdb09a460b"},"headline":"How to Add Google Analytics to WordPress","datePublished":"2020-11-03T14:06:48+00:00","dateModified":"2026-01-22T16:14:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/"},"wordCount":115,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-1024x538.jpg","articleSection":["WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/","name":"How to Add Google Analytics to WordPress","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img-1024x538.jpg","datePublished":"2020-11-03T14:06:48+00:00","dateModified":"2026-01-22T16:14:31+00:00","description":"Learn how to add Google Analytics with a plugin or without. You'll see the steps to add GA through a video and screen shots along with explicit instructions.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/11\/ga-header-img.jpg","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/how-to-add-google-analytics-to-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Add Google Analytics to WordPress"}]},{"@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\/62852","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=62852"}],"version-history":[{"count":28,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/62852\/revisions"}],"predecessor-version":[{"id":131518,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/62852\/revisions\/131518"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=62852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=62852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=62852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}