{"id":7103,"date":"2023-10-05T10:13:03","date_gmt":"2023-10-04T23:13:03","guid":{"rendered":"https:\/\/www.yellow.com.au\/?post_type=hub&#038;p=7103"},"modified":"2025-07-23T11:30:42","modified_gmt":"2025-07-23T01:30:42","slug":"how-to-set-up-google-analytics-for-your-website","status":"publish","type":"hub","link":"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/","title":{"rendered":"How to set up Google Analytics for your website."},"content":{"rendered":"<h2><strong>A guide to connecting <\/strong><strong>Google Analytics 4 (GA4) <\/strong><strong>and Google Tag Manager (GTM) to your business website.<\/strong><\/h2>\n<p>When it comes to running an online business, data serves as your compass in the ever-changing world of eCommerce, providing valuable insights into your audience&#8217;s online behaviour. Consider Google Analytics 4\u00a0 and Google Tag Manager as your trusty first mates on this data-driven voyage, and this article is your map to get them up and running.<\/p>\n<h2><strong>Setting up GA4 for your website.<\/strong><\/h2>\n<p>If\u00a0 you already have a Google account, great. If not, you need to start by setting one up. Follow this <a href=\"https:\/\/accounts.google.com\/\" target=\"_blank\" rel=\"noopener\"><span style=\"text-decoration: underline\">link<\/span> <\/a>and begin by creating your Google business account. Once that\u2019s complete, come back and you can move onto the next step.<\/p>\n<p><strong>RELATED: <a href=\"https:\/\/www.yellow.com.au\/business-hub\/how-to-set-up-and-update-your-google-business-profile\/\">How to set up and update your Google Business Profile.<\/a><\/strong><\/p>\n<h3><strong>1. Create a GA4 Property.<\/strong><\/h3>\n<p>Sign in to your Google Analytics account or <a href=\"https:\/\/support.google.com\/analytics\/answer\/9304153?hl=en#:~:text=Create%20an%20Analytics%20account&amp;text=Go%20to%20https%3A%2F%2Fanalytics,Account%20column%2C%20click%20Create%20Account.\" target=\"_blank\" rel=\"noopener\">create one<\/a> if you don&#8217;t have it. Once logged in, navigate to the Admin section in the sidebar on the left. Click on \u2018Create Property\u2019 and select \u2018Web\u2019.<\/p>\n<p>Follow the prompts to provide information about your website, including the URL, property name, reporting time zone, currency and general information regarding your business objectives. When prompted, opt for \u2018Get baseline reports\u2019 to keep things simple.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7108\" src=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_1.jpg\" alt=\"Image of Google Analytics showing how to create a 'Property'.\" width=\"900\" height=\"519\" srcset=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_1.jpg 900w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_1-640x369.jpg 640w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_1-768x443.jpg 768w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_1-600x346.jpg 600w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<h3><strong>2. Set up Data Streams.<\/strong><\/h3>\n<p>After creating the &#8216;Property&#8217;, you&#8217;ll need to set up &#8216;Data Streams&#8217; for your website. A &#8216;Data Stream&#8217; represents the source of the data you want to track, which is typically your website. To create a &#8216;Data Stream&#8217;, select your &#8216;Property&#8217; and click on \u2018Data Streams\u2019 under the &#8216;Property&#8217; settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7109\" src=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_2.jpg\" alt=\"Image showing how to set up 'Data Streams' in Google Analytics 4. \" width=\"900\" height=\"517\" srcset=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_2.jpg 900w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_2-640x368.jpg 640w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_2-768x441.jpg 768w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_2-600x345.jpg 600w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Choose \u2018Web\u2019 as the source type and follow the instructions to complete the setup. Once you have your GA4 Tracking Code, you can move on to the installation.<\/p>\n<h3><strong>3. Install the GA4 Tracking Code.<\/strong><\/h3>\n<p>There are a few ways to install GA4 on your website and some are easier than others.<\/p>\n<p>The options are:<\/p>\n<ol>\n<li>Using a Google Analytics integration or plugin (this is most relevant for WordPress users). Shopify has a built-in solution that can be found on the Shopify <a href=\"https:\/\/help.shopify.com\/en\/manual\/reports-and-analytics\/google-analytics\/google-analytics-setup\" target=\"_blank\" rel=\"noopener\">website<\/a> at Step 3.<\/li>\n<li>Using Google Tag Manager (GTM)<\/li>\n<li>Or the more laborious route, installing with the GA4 native tracking code.<\/li>\n<\/ol>\n<p>Using a plugin or the Shopify built-in method is definitely the \u2018easiest\u2019 way to install your GA4 tag, but it should be noted that using the Google Tag Manager route is best for a number of reasons:<\/p>\n<ul>\n<li><b>Simplicity:<\/b> Google Tag Manager helps simplify the implementation of other tools including GA4<\/li>\n<li><b>Convenience:<\/b> It reduces your reliance on developers as you can easily add or remove tags without having to change the website code every time<\/li>\n<li><b>Customisation:<\/b> You can create custom events in GTM with any custom parameter, that you can later add to GA4 to ensure that you are tracking all important events to your business.<\/li>\n<\/ul>\n<p>For these reasons, and the fact that it is generally considered best practice, let\u2019s dive into Option 2 &#8211; using Google Tag Manager.<\/p>\n<h2><b>Prerequisites.<\/b><\/h2>\n<p>Before you begin, make sure you have the following:<\/p>\n<ul>\n<li>A Google Tag Manager Account: If you don&#8217;t have a GTM account, create one at <a href=\"https:\/\/tagmanager.google.com\" target=\"_blank\" rel=\"noopener\">https:\/\/tagmanager.google.com<\/a><\/li>\n<li>GTM needs to be installed on your website. See Google\u2019s support guide <span style=\"text-decoration: underline\"><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6103696?hl=en\" target=\"_blank\" rel=\"noopener\">here<\/a><\/span><\/li>\n<li>A Google Analytics 4 Property: Set up a GA4 Property in your Google Analytics account (as above). You&#8217;ll need the Measurement ID associated with this Property, which is found in the \u2018Admin &gt; Data Streams &gt; Web Data Stream\u2019 that you created earlier.<\/li>\n<\/ul>\n<p>Once you have created your GTM account and installed it on your website, you can get started with setting up your tags.<\/p>\n<p>The first step is to create a container, which you&#8217;ll find detailed instructions on the process <span style=\"text-decoration: underline\"><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/12974036?hl=en\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/span> When you&#8217;ve created your first container, you&#8217;ll be directed to the overview window. On the left side bar go to &#8216;Tags &gt; New&#8217; and select \u2018Google Tag\u2019.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7110\" src=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_3.jpg\" alt=\"Image showing how to set up your Google Tag in Google Tag Manager.\" width=\"900\" height=\"214\" srcset=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_3.jpg 900w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_3-640x152.jpg 640w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_3-768x183.jpg 768w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA4_3-600x143.jpg 600w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Then paste your Measurement ID (from your Property) in the box below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7111\" src=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-setup-GA4_4.jpg\" alt=\"Image showing where to paste your measurement ID in Google Tag Manager.\" width=\"900\" height=\"442\" srcset=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-setup-GA4_4.jpg 900w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-setup-GA4_4-640x314.jpg 640w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-setup-GA4_4-768x377.jpg 768w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-setup-GA4_4-600x295.jpg 600w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Underneath your &#8216;Tags&#8217; box, you will see a \u2018Triggering\u2019 box. Click on it and select \u2018Initializing &#8211; Pages\u2019. Your Google Tag Configuration and Triggering should appear as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7115\" src=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA5.jpg\" alt=\"Image showing how to set up a Tag on Google Tag Manager.\" width=\"900\" height=\"399\" srcset=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA5.jpg 900w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA5-640x284.jpg 640w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA5-768x340.jpg 768w, https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/How-to-Setup-GA5-600x266.jpg 600w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>The only thing left to do is to confirm that your tags are firing correctly. You\u2019ll find Google\u2019s easy to follow step-by-step guide <span style=\"text-decoration: underline\"><a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6107056?hl=en\">here<\/a><\/span> for the GTM process.<\/p>\n<p>Alternatively, if you want to use the GA4 DebugView, it can be found in \u2018Admin &gt; DebugView\u2019. Google\u2019s <a href=\"https:\/\/support.google.com\/analytics\/answer\/7201382?hl=en\">support article<\/a> also shows you how to ensure your tags are firing.<\/p>\n<p>Now that you&#8217;ve set up your GA4 and Google Tag Manager, you&#8217;re ready to start tracking your data and boosting your business&#8217; online performance.<\/p>\n<p>For more information on how to analyse your data to optimise your website and improve conversion rates, check out our article <span style=\"text-decoration: underline\"><a href=\"https:\/\/www.yellow.com.au\/business-hub\/the-importance-of-data-analysis-in-conversion-rate-optimisation-cro\/\">here<\/a>.<\/span><\/p>\n","protected":false},"author":22,"featured_media":7106,"parent":0,"menu_order":0,"template":"","class_list":["post-7103","hub","type-hub","status-publish","has-post-thumbnail","hentry","seo-websites","data-analytics-data-analytics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.0.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setup Google Analytics via Google Tag Manager - Yellow Pages<\/title>\n<meta name=\"description\" content=\"Yellow Pages Guide: Set up Google Analytics via Google Tag Manager for in-depth website insights. Maximise your online performance today!\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup Google Analytics via Google Tag Manager - Yellow Pages\" \/>\n<meta property=\"og:description\" content=\"Yellow Pages Guide: Set up Google Analytics via Google Tag Manager for in-depth website insights. Maximise your online performance today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Yellow Pages\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-23T01:30:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/Header_Google-Analytics_Feature.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"509\" \/>\n\t<meta property=\"og:image:height\" content=\"339\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"5 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.yellow.com.au\/#website\",\"url\":\"https:\/\/www.yellow.com.au\/\",\"name\":\"Yellow Pages\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.yellow.com.au\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-AU\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/#primaryimage\",\"inLanguage\":\"en-AU\",\"url\":\"https:\/\/www.yellow.com.au\/wp-content\/uploads\/sites\/2\/2023\/10\/Header_Google-Analytics_Feature.jpg\",\"width\":509,\"height\":339,\"caption\":\"Mature businessman sitting at the table and working on computers. He is trading with cryptocurrency.\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/#webpage\",\"url\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/\",\"name\":\"Setup Google Analytics via Google Tag Manager - Yellow Pages\",\"isPartOf\":{\"@id\":\"https:\/\/www.yellow.com.au\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/#primaryimage\"},\"datePublished\":\"2023-10-04T23:13:03+00:00\",\"dateModified\":\"2025-07-23T01:30:42+00:00\",\"description\":\"Yellow Pages Guide: Set up Google Analytics via Google Tag Manager for in-depth website insights. Maximise your online performance today!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.yellow.com.au\/\",\"url\":\"https:\/\/www.yellow.com.au\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/\",\"url\":\"https:\/\/www.yellow.com.au\/business-hub\/\",\"name\":\"Business Hub\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/\",\"url\":\"https:\/\/www.yellow.com.au\/business-hub\/data-analytics\/how-to-set-up-google-analytics-for-your-website\/\",\"name\":\"How to set up Google Analytics for your website.\"}}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/hub\/7103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/hub"}],"about":[{"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/types\/hub"}],"author":[{"embeddable":true,"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/users\/22"}],"version-history":[{"count":0,"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/hub\/7103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/media\/7106"}],"wp:attachment":[{"href":"https:\/\/www.yellow.com.au\/wp-json\/wp\/v2\/media?parent=7103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}