{"id":11191,"date":"2019-07-10T09:44:42","date_gmt":"2019-07-10T14:44:42","guid":{"rendered":"https:\/\/www.hostgator.com\/blog\/?p=11191"},"modified":"2019-11-26T10:50:31","modified_gmt":"2019-11-26T15:50:31","slug":"add-google-analytics-wordpress-website","status":"publish","type":"post","link":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/","title":{"rendered":"How to Add Google Analytics to Your WordPress Site [Step-by-Step]"},"content":{"rendered":"\n<p>If you have a business, your website is a gold mine of information that tells visitors if your brand if right for them and suits their needs. <\/p>\n\n\n\n<p>If you want your site to <a href=\"https:\/\/www.hostgator.com\/blog\/4-proven-methods-to-increase-your-website-conversions\/\">increase <em>your<\/em> conversions<\/a>, however, you need to keep tabs on its performance regularly. It\u2019s also important to know how visitors interact with your website so you can continue making tweaks that suit their needs.<\/p>\n\n\n\n<p>Your WordPress website is as good as stale without tracking its progress in Google Analytics. <\/p>\n\n\n\n<p>Nearly 28 million websites rely on Google Analytics to keep their businesses afloat and give customers what they want. The key to running a successful business is knowing the customer so well you hand them opportunities before they realize they need them. With Google Analytics, you&#8217;ll have access to the data you need to know your customer.<\/p>\n\n\n\n<p>Installing Google Analytics on your WordPress website is simple and doesn\u2019t take much time at all. Here\u2019s how to get started.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.hostgator.com\/managed-wordpress-hosting\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"60\" src=\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2017\/12\/Wordpress.png\" alt=\"best WordPress hosting\" class=\"wp-image-18313\" srcset=\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2017\/12\/Wordpress.png 470w, https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2017\/12\/Wordpress-300x38.png 300w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">1. Know What Data You&#8217;re Looking For<\/h2>\n\n\n\n<p>There are <a href=\"https:\/\/www.hostgator.com\/blog\/why-use-google-analytics\/\">several reasons to use Google Analytics<\/a>, but the main one is that it keeps you in tune with your visitors so you can give them what they want. To get the most out of it, you need to know what you\u2019re looking for. It doesn\u2019t make much sense to scour data and statistics when you aren\u2019t quite sure what your numbers should be or what to look at. <\/p>\n\n\n\n<p>It\u2019s essential to have a clear understanding of how your audience interacts with your site so you can continue creating content they\u2019ll enjoy. Tracking your metrics is the best way to do this.<\/p>\n\n\n\n<p>Keep an eye out for these particular metrics:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Bounce rate<\/li><li>Acquisition overview<\/li><li>Unique visitors<\/li><li>Returning visitors<\/li><li>Pageviews<\/li><li>Session duration or engagement<\/li><\/ul>\n\n\n\n<p>There\u2019s an entire plethora of information you can gather from looking through your analytics. With Google Analytics WordPress, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>See what blog posts perform the best and get the most shares so you can continue to create similar content you know will be useful. <\/li><li>Track your <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/optinmonster.com\/12-tips-to-reduce-bounce-rate-and-boost-your-conversions\/\" target=\"_blank\">bounce rate<\/a> and see where visitors are leaving your site so you can figure out how to prevent that from continuing and instead focus on increasing page views. <\/li><li>Visit your <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/wpforms.com\/how-to-create-a-dedicated-form-landing-page-in-wordpress\/\" target=\"_blank\">landing pages<\/a> to see how well they are or aren\u2019t capturing new leads.<\/li><\/ul>\n\n\n\n<p>You can also decide the <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/formidableforms.com\/schedule-your-forms-limit-responses\/\" target=\"_blank\">best times to post content<\/a>, how people find your website, what browsers they use, and more. All of this information can aid you in creating a high-converting web experience for your site visitors.<\/p>\n\n\n\n<p>It\u2019s always a good idea to <a href=\"https:\/\/memberpress.com\/optimize-split-testing\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">A\/B split test<\/a> different components of your website if you aren\u2019t reaching the conversion rates you predicted. You can create these tests right in Google Analytics to understand how you can achieve your goals faster. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Set Up a Google Analytics Account<\/h2>\n\n\n\n<p>First, you need to either create an account with Google or use an existing one. Then, sign in to your Google account.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/i3b4y66XYTubdRm8fJKUDpkWleicDY-1FFeoZZbbRjrDAsGAHLhVFnu7Kcff92lRl0rA-Kf2s4pu82NIYBAaIreplUrpA7Xw96yPCzgUBt-z0ylaeD0W8Ul3ubKDCshSeNkzYk2z\" alt=\"sign into google to set up google analytics on wordpress\" width=\"466\" height=\"525\"\/><\/figure><\/div>\n\n\n\n<p>Go through the following screens to continue to sign up for your Google Analytics account.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/zp0KYrd84DVjqEaLNHtEQO_5AvkO0IOVm_S2dyMOhtav-s7dKiOqchMLqYDZtQ-w_CgrxXRp0z0wGk2ZLFAZgI3C1OimtZLocXHbkeKYHf_rP6CGTU1VS17vLFcbfbzx_5L2fiSa\" alt=\"set up google analytics\" width=\"400\" height=\"124\"\/><\/figure><\/div>\n\n\n\n<p>Next, enter your account information. Google will ask you whether you\u2019d like to track a website or mobile app, so make sure it\u2019s under the <em>Website<\/em> tab.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/tfSu2wQzXuU4BILCHUQu_nPtxDrJppH1bUsmGkWoZOra3uWWmD62GA3A5-uvzaurlEEcy8bVv7nLO20nRPzHvmvGkModqg8u7gaQHoWLjKBPwwvJX8iDgsNdnps78mW5Yv4NT8h7\" alt=\"set up google analytics for website\" width=\"394\" height=\"662\"\/><\/figure><\/div>\n\n\n\n<p>At the bottom, click on <em>Get Tracking ID<\/em>. This is a code Google uses to track your site information.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/6nBibsomP6rc-TGmqD3aZ35T50Xk82geUSW9dD41zqpCZdha0UdbhCxvrVZb_JQByp7A5Mo-opVX9-uczu29DaLgRPMcK3m976uF5XuaQWyIIcpDxGjWyzH6jdZ6vrNpuRl_eKm6\" alt=\"get tracking id for google analytics\" width=\"400\" height=\"250\"\/><\/figure><\/div>\n\n\n\n<p>Then you\u2019ll want to accept the Terms of Service as well as Additional Terms.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/hyJ8mj25WlAMyQYD4KYyouF1elL0RgWfPx2doQ_mTMpDpQMchNjlyDz1h_awaUKqi2ChGisi9mWkkbNCeiY2YrvZsYm4C2zDtXDRIYVQYuBWjTca46MWUrBGWdoJvYLprr03qpp1\" alt=\"accept google analytics terms of service\" width=\"322\" height=\"235\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/qXM1PZ_jkoP0Q9nXm1XlWAzN9QRb0jn1JAvWTSn9szwARmkOqO0znNTWgBWXKsSC7S3J1Gl-36Vdz2AsN1VwFN_LWgXfMFPNtps0VtagbaJ6HLpHT8dEOvNZjuot2AiPmNZ-YHDx\" alt=\"accept additional terms for google analytics\" width=\"310\" height=\"305\"\/><\/figure><\/div>\n\n\n\n<p>When you click Accept, you\u2019re directed to your Analytics dashboard. Congratulations! Your Google Analytics account setup is now complete.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/8gfUMZ3NLl_-MXDDXhL1PzyTJmHWo6q2EYzTSSuauaiRzniIJ8Xh2PwQo-cw2Y7vQE_jPY9_YuNjKlnrqSL7ixBiFn3KzPTcQwKbegmRRCx-tnNSE9arpT9keK-IyHgReUh08bD9\" alt=\"google analytics dashboard\"\/><\/figure><\/div>\n\n\n\n<p>You\u2019re going to end up copying and pasting your tracking ID code into your MonsterInsights plugin settings. This will allow MonsterInsights to read and receive Google Analytics\u2019 data so you can see it from your WordPress dashboard.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Install MonsterInsights for WordPress<\/h2>\n\n\n\n<p>To set up Google Analytics straight to your WordPress dashboard, you need a plugin like <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/monsterinsights.com\" target=\"_blank\">MonsterInsights<\/a>. The value of MonsterInsights is that it brings your Google Analytics data straight to you, in your WordPress dashboard. That means you no longer have to sign in to a separate website to view your site traffic and performance.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/g-OvdS8l97_iY1E1uLGXfdAyF6d7apaiuUwUnDps-8CuULYnV5_pwzc9Q2BbIeVOAXNbMUGM9tIWOZlsPQEGF2YvgQWWu0SfqUTfDLPRZ8xXwLtRRSG2Ax29r2byclAemX9WyBfK\" alt=\"monsterinsights google analytics plugin for wordpress\" width=\"465\" height=\"270\"\/><\/figure><\/div>\n\n\n\n<p>First, you need to download and <a href=\"https:\/\/wordpress.org\/plugins\/google-analytics-for-wordpress\/\">install the MonsterInsights plugin<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/c_lo7YOM9xcgP4b_kFNEbD9Kl05PVSobSKEz2RY24Jytq9EXQszzFS5aYsg88eLVHPU706W2GgPm5RZKWIDNZhU8H5wjHKbD8psj0CtfZSbSB-RaABMw3U9oNagVAkPRARXOzy-w\" alt=\"install monsterinsights wordpress plugin for google analytics\" width=\"400\" height=\"194\"\/><\/figure><\/div>\n\n\n\n<p>From your WordPress dashboard, upload the plugin and select <em>Install Now<\/em>. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/zcKO1auU3tiRSCerqlT4FMZM-fVMAU-1rY5uAImG-mvN3Cvdx2Zf3dl5-R48NpT6fvkCXdx517_eV_l_Jg7RJwxiO00kTPOq_uKQBDEnmzmIg_LzxJx37gR0DEyd7KHSTBT74rvF\" alt=\"install zip file for wordpress plugin\" width=\"400\" height=\"159\"\/><\/figure><\/div>\n\n\n\n<p>Click <em>Activate Plugin<\/em> so your MonsterInsights plugin is added to your website.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/2qVNIFaGTDMAqMBSyANRkONoxLitNDfZzhYiG-71IY5yuaMEo4QtsqIK8yz_H6Nu9wNigj7rcjj7DQswFWYI4fRidGtJx3YHrWIDeV0i4Ff2hmVeyGr7HLl28T4bF-7fIxZv5hHD\" alt=\"activate wordpress plugin for google analytics\" width=\"540\" height=\"167\"\/><\/figure><\/div>\n\n\n\n<p>Now you need to authenticate your MonsterInsights account. Hover over the MonsterInsights button in your WordPress panel and click <em>Settings<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/06KJxbEQwRhHCtuArhI2rs2WMyLp5HcQe625qtrIvIHuMYEe4qq9BMpHyhMhvt1qwnfVbHM4sORRm28E68uBopWLn7b6KwsV9Gx-5TD4XRUDOUXZqlgQfGiFjY3Inlk-qR2ywbix\" alt=\"monsterinsights settings in wordpress\" width=\"470\" height=\"176\"\/><\/figure><\/div>\n\n\n\n<p>Authenticate your Google account so that it\u2019s integrated with your WordPress website.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/V98EDxzSjWhiThYCvMgpm0qHjmX3UxWHH4k_J2s-5Nb6a1pEGoDbMPpJoGzYx_m90PtAV4tgDSFrfZNLo_fxuZO-wkH5cuaMWgDBeg9iuodPqWrmRSTR-z29HOqKLDJJ9NGdVb1-\" alt=\"set up google analytics with monsterinsights\" width=\"345\" height=\"261\"\/><\/figure><\/div>\n\n\n\n<p>Once you connect your MonsterInsights account, it will redirect you to sign in with your Google account.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/RhzJRbVfSOC5kX5A6deq1kiA_UiP_8esC4XbK2fNNGVs6eourENxf8COkfeW-aNsBtTeT56UJY0EUbarTL68N1qYsLECCUUIRpkK3BZfCSEqjkN8TGkR9-MnsI9Lw7Jc2sHBThLx\" alt=\"sign into google account for monsterinsights plugin\" width=\"431\" height=\"582\"\/><\/figure><\/div>\n\n\n\n<p>Click <em>Complete Connection<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/KxcwQcusYWaO5UMorRpOJpjMYZfW7Hnh8UXJAe8MVGF-J7PRvG9uaoBQtuU-zfGHW9rQ3i_r_jDlJkW7xGSwivuccM5Tuu2sK3rlQAoSjHjNCCcVU0yXjpc5E8aCR4xi_LHAAEFG\" alt=\"connect google analytics to your website with monsterinsights plugin\" width=\"396\" height=\"231\"\/><\/figure><\/div>\n\n\n\n<p>From the MonsterInsights button in your WordPress dashboard, hover over it, and click <em>Reports<\/em>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/TCMfRpEPXst8oABQ0k9QmgqfDFEydRIrw0ur2hO98PxCaR5tCv8MrSVXm7UtkYEQHxxpEZpcrv58dDwr1vNZE0l5RLFim3YWhdecYB807DK63DwVIGB06Zijgqn7qu3xzyvlUe6A\" alt=\"monsterinsights reports\" width=\"423\" height=\"161\"\/><\/figure><\/div>\n\n\n\n<p>Now, your MonsterInsights analytics is connected to your WordPress website and ready to view reports!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/k9W8alCoC91vEetp8IPr_033GKl_OVMIXuWrTeiMCY_s9DClDmWhycOrs_EPnYZbMVD33TeY0cbTB59Ez4GuJ_VoF2qIsdd9KvL0-wyTd9jDisCeJIUvaB6BDVgDVpmiaAHC4a4X\" alt=\"view google analytics for wordpress\" width=\"400\" height=\"206\"\/><\/figure><\/div>\n\n\n\n<p>The great thing about setting up MonsterInsights is it takes mere minutes to set up. Just a few clicks and filling out information and you\u2019re able to see all your site\u2019s data straight from WordPress. It\u2019s convenient for you so that you can make quick, informed decisions about your website or business for the best results and highest conversions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Get Started with MonsterInsights<\/h2>\n\n\n\n<p>Setting up Google Analytics on your WordPress website will be the best thing you do for your website. When you know how visitors are interacting and engaging with your site, you discover how you can serve them better so they can move further down the funnel and eventually become loyal customers. <\/p>\n\n\n\n<p>There are endless benefits when tracking your site\u2019s progress and Google Analytics paired with MonsterInsights is the best way to do so.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you have a business, your website is a gold mine of information that tells visitors if your brand if&#8230;<\/p>\n","protected":false},"author":158,"featured_media":23015,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[104,121],"class_list":["post-11191","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-and-hosting-tips","tag-featured","tag-wordpress-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.2 (Yoast SEO v23.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Google Analytics to WordPress | HostGator<\/title>\n<meta name=\"description\" content=\"Here&#039;s how you can install Google Analytics on your website, add it to your existing theme, or use a WordPress plugin to manage your data. Read now!\" \/>\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.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\" \/>\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 Your WordPress Site [Step-by-Step]\" \/>\n<meta property=\"og:description\" content=\"Here&#039;s how you can install Google Analytics on your website, add it to your existing theme, or use a WordPress plugin to manage your data. Read now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\" \/>\n<meta property=\"og:site_name\" content=\"HostGator\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/HostGator\" \/>\n<meta property=\"article:author\" content=\"http:\/\/facebook.com\/syedbalkhi\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-10T14:44:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-26T15:50:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostgator.com\/blog\/wp-content\/\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1152\" \/>\n\t<meta property=\"og:image:height\" content=\"604\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Syed Balkhi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@http:\/\/twitter.com\/syedbalkhi\" \/>\n<meta name=\"twitter:site\" content=\"@HostGator\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Syed Balkhi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\"},\"author\":{\"name\":\"Syed Balkhi\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/#\/schema\/person\/90733d5333884bbec1e0161fa11f853d\"},\"headline\":\"How to Add Google Analytics to Your WordPress Site [Step-by-Step]\",\"datePublished\":\"2019-07-10T14:44:42+00:00\",\"dateModified\":\"2019-11-26T15:50:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\"},\"wordCount\":961,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png\",\"keywords\":[\"featured\",\"WordPress Hosting\"],\"articleSection\":[\"Web Hosting Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\",\"url\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\",\"name\":\"How to Add Google Analytics to WordPress | HostGator\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png\",\"datePublished\":\"2019-07-10T14:44:42+00:00\",\"dateModified\":\"2019-11-26T15:50:31+00:00\",\"description\":\"Here's how you can install Google Analytics on your website, add it to your existing theme, or use a WordPress plugin to manage your data. Read now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage\",\"url\":\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png\",\"contentUrl\":\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png\",\"width\":1152,\"height\":604,\"caption\":\"How to Set up Google Analytics on Your WordPress Site\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.hostgator.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Google Analytics to Your WordPress Site [Step-by-Step]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/#website\",\"url\":\"https:\/\/www.hostgator.com\/blog\/\",\"name\":\"HostGtaor\",\"description\":\"Web Hosting and Marketing Tips for Entrepreneurs\",\"publisher\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostgator.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/#organization\",\"name\":\"HostGtaor\",\"url\":\"https:\/\/www.hostgator.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2019\/04\/cropped-HG-Logo_default-default.png\",\"contentUrl\":\"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2019\/04\/cropped-HG-Logo_default-default.png\",\"width\":1092,\"height\":215,\"caption\":\"HostGtaor\"},\"image\":{\"@id\":\"https:\/\/www.hostgator.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/HostGator\",\"https:\/\/x.com\/HostGator\",\"https:\/\/www.instagram.com\/hostgator\",\"https:\/\/www.linkedin.com\/company\/hostgator-com\",\"https:\/\/www.pinterest.com\/hostgator\/\",\"https:\/\/www.youtube.com\/user\/hostgator\"],\"email\":\"support@gator.com\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/#\/schema\/person\/90733d5333884bbec1e0161fa11f853d\",\"name\":\"Syed Balkhi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostgator.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c21fbb45125020a7e187ba9d615e6f2b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c21fbb45125020a7e187ba9d615e6f2b?s=96&d=mm&r=g\",\"caption\":\"Syed Balkhi\"},\"description\":\"Syed Balkhi is the founder of WPBeginner, the largest free WordPress resource site. With over 10 years of experience, he's the leading WordPress expert in the industry. You can learn more about Syed and his portfolio of companies by following him on his social media networks.\",\"sameAs\":[\"http:\/\/facebook.com\/syedbalkhi\",\"http:\/\/linkedin.com\/in\/syedbalkhi\",\"https:\/\/x.com\/http:\/\/twitter.com\/syedbalkhi\",\"http:\/\/youtube.com\/wpbeginner\"],\"url\":\"https:\/\/www.hostgator.com\/blog\/author\/syed-balkhi\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Add Google Analytics to WordPress | HostGator","description":"Here's how you can install Google Analytics on your website, add it to your existing theme, or use a WordPress plugin to manage your data. Read now!","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.hostgator.com\/blog\/add-google-analytics-wordpress-website\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Google Analytics to Your WordPress Site [Step-by-Step]","og_description":"Here's how you can install Google Analytics on your website, add it to your existing theme, or use a WordPress plugin to manage your data. Read now!","og_url":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/","og_site_name":"HostGator","article_publisher":"https:\/\/www.facebook.com\/HostGator","article_author":"http:\/\/facebook.com\/syedbalkhi","article_published_time":"2019-07-10T14:44:42+00:00","article_modified_time":"2019-11-26T15:50:31+00:00","og_image":[{"width":1152,"height":604,"url":"https:\/\/www.hostgator.com\/blog\/wp-content\/\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png","type":"image\/png"}],"author":"Syed Balkhi","twitter_card":"summary_large_image","twitter_creator":"@http:\/\/twitter.com\/syedbalkhi","twitter_site":"@HostGator","twitter_misc":{"Written by":"Syed Balkhi","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#article","isPartOf":{"@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/"},"author":{"name":"Syed Balkhi","@id":"https:\/\/www.hostgator.com\/blog\/#\/schema\/person\/90733d5333884bbec1e0161fa11f853d"},"headline":"How to Add Google Analytics to Your WordPress Site [Step-by-Step]","datePublished":"2019-07-10T14:44:42+00:00","dateModified":"2019-11-26T15:50:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/"},"wordCount":961,"commentCount":0,"publisher":{"@id":"https:\/\/www.hostgator.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png","keywords":["featured","WordPress Hosting"],"articleSection":["Web Hosting Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/","url":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/","name":"How to Add Google Analytics to WordPress | HostGator","isPartOf":{"@id":"https:\/\/www.hostgator.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage"},"image":{"@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png","datePublished":"2019-07-10T14:44:42+00:00","dateModified":"2019-11-26T15:50:31+00:00","description":"Here's how you can install Google Analytics on your website, add it to your existing theme, or use a WordPress plugin to manage your data. Read now!","breadcrumb":{"@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#primaryimage","url":"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png","contentUrl":"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2016\/08\/How-to-Set-up-Google-Analytics-on-Your-WordPress-Site.png","width":1152,"height":604,"caption":"How to Set up Google Analytics on Your WordPress Site"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostgator.com\/blog\/add-google-analytics-wordpress-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hostgator.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add Google Analytics to Your WordPress Site [Step-by-Step]"}]},{"@type":"WebSite","@id":"https:\/\/www.hostgator.com\/blog\/#website","url":"https:\/\/www.hostgator.com\/blog\/","name":"HostGtaor","description":"Web Hosting and Marketing Tips for Entrepreneurs","publisher":{"@id":"https:\/\/www.hostgator.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostgator.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hostgator.com\/blog\/#organization","name":"HostGtaor","url":"https:\/\/www.hostgator.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostgator.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2019\/04\/cropped-HG-Logo_default-default.png","contentUrl":"https:\/\/www.hostgator.com\/blog\/wp-content\/uploads\/2019\/04\/cropped-HG-Logo_default-default.png","width":1092,"height":215,"caption":"HostGtaor"},"image":{"@id":"https:\/\/www.hostgator.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/HostGator","https:\/\/x.com\/HostGator","https:\/\/www.instagram.com\/hostgator","https:\/\/www.linkedin.com\/company\/hostgator-com","https:\/\/www.pinterest.com\/hostgator\/","https:\/\/www.youtube.com\/user\/hostgator"],"email":"support@gator.com"},{"@type":"Person","@id":"https:\/\/www.hostgator.com\/blog\/#\/schema\/person\/90733d5333884bbec1e0161fa11f853d","name":"Syed Balkhi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostgator.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c21fbb45125020a7e187ba9d615e6f2b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c21fbb45125020a7e187ba9d615e6f2b?s=96&d=mm&r=g","caption":"Syed Balkhi"},"description":"Syed Balkhi is the founder of WPBeginner, the largest free WordPress resource site. With over 10 years of experience, he's the leading WordPress expert in the industry. You can learn more about Syed and his portfolio of companies by following him on his social media networks.","sameAs":["http:\/\/facebook.com\/syedbalkhi","http:\/\/linkedin.com\/in\/syedbalkhi","https:\/\/x.com\/http:\/\/twitter.com\/syedbalkhi","http:\/\/youtube.com\/wpbeginner"],"url":"https:\/\/www.hostgator.com\/blog\/author\/syed-balkhi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/posts\/11191"}],"collection":[{"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/users\/158"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/comments?post=11191"}],"version-history":[{"count":14,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/posts\/11191\/revisions"}],"predecessor-version":[{"id":24266,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/posts\/11191\/revisions\/24266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/media\/23015"}],"wp:attachment":[{"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/media?parent=11191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/categories?post=11191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostgator.com\/blog\/wp-json\/wp\/v2\/tags?post=11191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}