{"id":913,"date":"2022-08-05T14:46:31","date_gmt":"2022-08-05T14:46:31","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/08\/05\/6448915-hostinger-website-builder-how-to-connect-google-analytics\/"},"modified":"2026-03-16T12:12:08","modified_gmt":"2026-03-16T12:12:08","slug":"6448915-hostinger-website-builder-how-to-connect-google-analytics","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6448915-hostinger-website-builder-how-to-connect-google-analytics\/","title":{"rendered":"Hostinger Website Builder: How to Connect Google Analytics"},"content":{"rendered":"<p class=\"no-margin\"><b><a href=\"https:\/\/analytics.google.com\/analytics\/web\/provision\/#\/provision\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Google Analytics<\/a><\/b> helps understand a website&rsquo;s visitors and check the performance of your site.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">The below-given instructions apply to sites created with <b>Hostinger Website Builder &#128161; <\/b><\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_26a37cade1\">Before You Begin<\/h2><p class=\"no-margin\">At the moment, there are two types of Google Analytics properties:<\/p><ol>\n<li>\n<p class=\"no-margin\"><b>Google Analytics 4 <\/b>(Measurement ID:<b> G-XXXXXXX<\/b>)<b> <\/b>&ndash; recommended<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Universal Analytics<\/b><i> <\/i>(Tracking ID: UA-XXXXXX-X)<\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">For now, both types of properties are supported, but it&rsquo;s highly recommended to use<b> Google Analytics 4<\/b>, as the other one stopped processing data on <b><a href=\"https:\/\/support.google.com\/analytics\/answer\/11583528\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">July 1, 2023<\/a><\/b>.<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">For tracking scripts to work properly, make sure that a <b><a href=\"\/support\/6491116-website-builder-how-to-add-a-cookie-banner\" target=\"_blank\" class=\"intercom-content-link\">cookie banner<\/a> <\/b>is enabled on your website &#128161; <\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_b574756ab9\">Connect Google Analytics to Your Website<\/h2><p class=\"no-margin\">To connect Google Analytics to your website, you only need to know the <b>Measurement ID <\/b>of your Google Analytics 4 property.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Within the editor, open your website&rsquo;s<b> <a href=\"\/support\/6463270-website-builder-integrations\" target=\"_blank\" class=\"intercom-content-link\">integrations settings<\/a><\/b>, find the <b>Google Analytics<\/b> field, and insert your<b> <\/b><b><a href=\"#h_78eeba10dd\" target=\"_blank\" class=\"intercom-content-link\">Measurement ID<\/a><\/b><b> <\/b>there:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/5f96b526-7922-4f79-9634-dde7bab77535.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Save the changes, and <b><a href=\"\/support\/6435697-website-builder-how-to-update-a-website\" target=\"_blank\" class=\"intercom-content-link\">update your website<\/a><\/b>. You should receive the first <b><a href=\"https:\/\/support.google.com\/analytics\/answer\/9212670\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">reports<\/a><\/b> in 24 hours.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_78eeba10dd\">Find Your Measurement ID<\/h2><ol>\n<li>\n<p class=\"no-margin\">Sign in to your <b><a href=\"https:\/\/analytics.google.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Google Analytics account<\/a><\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click on <b>Admin <\/b>in the bottom left<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">At the top of the <b>Property<\/b> column, select your property<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">In the <b>Property <\/b>column, click on <b>Data streams<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Click on the data stream for which you need the ID<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">The ID (<b>G-XXXXXXX<\/b>) appears in the top right<\/p>\n<\/li>\n<\/ol><p class=\"no-margin\">Or follow this <b><a href=\"https:\/\/support.google.com\/analytics\/answer\/9539598#find-G-ID\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">instruction by Google Analytics<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_68e76f84ea\">Create a New Google Analytics 4 Property (Optional)<\/h2><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">This is an optional step for those who don&rsquo;t use <b>Google Analytics 4 <\/b>yet and\/or want to create a new Google Analytics 4 property &#128161; <\/p>\n<\/div><p class=\"no-margin\">1. In your <b><a href=\"https:\/\/analytics.google.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Google Analytics account<\/a><\/b>, open the <b>Admin <\/b>section in the bottom left and click on <b>Create property<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/19bc6ad2-7e40-4b2d-b649-da28eca995a2.jpg\" alt=\"The Create Property button in the admin panel of Google Analytics\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">2. Provide the necessary details: property name, time zone, currency, and click on <b>Next<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/ccd98f7a-24f3-4747-97a5-724f20ce1090.jpg\" alt=\"Setting up the analytics property\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">3. Fill in your <b>Business information<\/b> and click on <b>Create<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/92fc7879-8094-45f0-99c8-326f15fed49b.jpg\" alt=\"Setting up the analytics property\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">4. For a platform to collect data from, select <b>Web<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/b16b4056-fe7c-4935-8ce9-700d83e60d93.jpg\" alt=\"Setting up the analytics property\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">5. Insert your domain name and the name of your web stream. Customize the settings if needed, and click on <b>Create stream<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/a7f8b3e9-45df-4ef3-a727-f661150b58f6.jpg\" alt=\"Setting up the analytics property\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">You may be asked to insert your Google tag into your website. Dismiss that window and find the <b>measurement ID<\/b> instead &ndash; that&rsquo;s all you need to know to <b><a href=\"#h_b574756ab9\" target=\"_blank\" class=\"intercom-content-link\">connect Google Analytics to your website<\/a><\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/6bf3f992-50a2-4109-96ba-1c18cec55809.jpg\" alt=\"Closing the pop-up showing the instructions on how to install Google Analytics \"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">6. You will find the<b> Measurement ID<\/b> on the right:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/dc756986-6ba8-4378-b3b6-9b24e0076be4.jpg\" alt=\"The necessary Google Analytics ID\"><\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_fb34cd2a69\">Troubleshoot<\/h2><p class=\"no-margin\">First, make sure that you&rsquo;ve inserted the correct <b><a href=\"https:\/\/support.google.com\/analytics\/answer\/9539598\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">tracking ID<\/a> <\/b>(G-XXXXXXXXXX)<b> <\/b>in your website&rsquo;s <b>integrations settings<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/53a624dd-4c80-4901-9e23-a3aedd9ffd35.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">It&rsquo;s also important to<b> <a href=\"\/support\/6435697-website-builder-updating-a-website\" target=\"_blank\" class=\"intercom-content-link\">update your website<\/a><\/b> once any code or ID is added, edited, or removed from the integrations settings, as this is how the changes are updated in your website&rsquo;s source code.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If everything seems to be set up correctly, but you still can&rsquo;t see any data in Google Analytics yet, don&rsquo;t worry &ndash; the first reports arrive <b>24 hours<\/b> after successfully integrating Google Analytics into your website.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Yet, if you&rsquo;re eager for statistics, you can check the <b><a href=\"https:\/\/support.google.com\/analytics\/answer\/9271392\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Realtime report<\/a><\/b>. Open your website, and, in another tab, go to <b>Google Analytics<\/b> &rarr; <b>Realtime<\/b> &rarr;<b> Overview<\/b>. If you have your website open, you should see at least one visitor (yourself) there, which means that your Google Analytics has been set up correctly:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/b66c8f78-16cf-4b1b-a061-566a30666cac.jpg\" alt=\"Realtime overview in Google Analytics\"><\/div><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">To learn more, check out <b><a href=\"https:\/\/analytics.google.com\/analytics\/academy\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Google Analytics Academy courses<\/a><\/b> &#128161;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to connect Google Analytics to your website created with Hostinger Website Builder<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[284],"tags":[],"class_list":["post-913","post","type-post","status-publish","format-standard","hentry","category-integrations"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6448915-hostinger-website-builder-how-to-connect-google-analytics\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/6448915-hostinger-creador-de-sitios-web-como-conectar-google-analytics\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/6448915-hostinger-createur-de-site-web-comment-connecter-google-analytics\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/6448915-hostinger-svetainiu-kurimo-irankis-kaip-prijungti-google-analytics\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/6448915-hostinger-criador-de-sites-como-conectar-o-google-analytics\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=913"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/913\/revisions"}],"predecessor-version":[{"id":3726,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/913\/revisions\/3726"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}