{"id":34538,"date":"2022-04-24T18:09:34","date_gmt":"2022-04-24T18:09:34","guid":{"rendered":"https:\/\/www.arimetrics.com\/tutoriales\/how-to-set-up-ga4-with-google-tag-manager"},"modified":"2022-08-09T07:52:16","modified_gmt":"2022-08-09T07:52:16","password":"","slug":"how-to-set-up-ga4-with-google-tag-manager","status":"publish","type":"docs","link":"https:\/\/www.arimetrics.com\/en\/tutorial\/how-to-set-up-ga4-with-google-tag-manager","title":{"rendered":"How to set up GA4 with Google Tag Manager"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Getting the Google Analytics ID 4<\/h2>\n\n\n\n<p>The first step in measuring Google Analytics with Google Tag Manager is to get the Google Analytics Measurement ID<\/p>\n\n\n\n<p>Let&#8217;s Manage -&gt; Data Flows -&gt; Click on the web flow and write down the measurement ID<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"817\" data-id=\"36871\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/05\/ga4-datastream-1024x817.webp\" alt=\"\" class=\"wp-image-36871\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/05\/ga4-datastream-1024x817.webp 1024w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/05\/ga4-datastream-300x239.webp 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/05\/ga4-datastream-768x613.webp 768w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/05\/ga4-datastream-1536x1225.webp 1536w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/05\/ga4-datastream-scaled.webp 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"209\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/select-data-stream-exclude-referral-1200x209.png\" alt=\"\" class=\"wp-image-37269\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/select-data-stream-exclude-referral-1200x209.png?v=1660031570 1200w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/select-data-stream-exclude-referral-300x52.png?v=1660031570 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/select-data-stream-exclude-referral-768x134.png?v=1660031570 768w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/select-data-stream-exclude-referral-1536x267.png?v=1660031570 1536w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/select-data-stream-exclude-referral.png?v=1660031570 1591w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"503\" data-id=\"37271\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/measurement-id-ga4-1200x503.png\" alt=\"\" class=\"wp-image-37271\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/measurement-id-ga4-1200x503.png?v=1660031571 1200w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/measurement-id-ga4-300x126.png?v=1660031571 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/measurement-id-ga4-768x322.png?v=1660031571 768w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/measurement-id-ga4-1536x643.png?v=1660031571 1536w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/measurement-id-ga4.png?v=1660031571 1714w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating page views tag in Google Tag Manager<\/h2>\n\n\n\n<p>From Google Tag Manager we create a tag with activator all the pages following the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Tags<\/li><li>New label<\/li><li>We put the name to the label (GA4 &#8211; Pageview)<\/li><li>We select Google Analytics: GA4 settings<\/li><li>We paste the measurement ID<\/li><li>We put as Activator All pages (all pages)<\/li><li>Keep<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"342\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/tags-new-gtm-1200x342.png\" alt=\"\" class=\"wp-image-37280\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/tags-new-gtm-1200x342.png?v=1660031575 1200w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/tags-new-gtm-300x85.png?v=1660031575 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/tags-new-gtm-768x219.png?v=1660031575 768w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/tags-new-gtm-1536x437.png?v=1660031575 1536w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/tags-new-gtm.png?v=1660031575 1662w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"438\" data-id=\"37283\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/gtm-pageview-1200x438.png\" alt=\"\" class=\"wp-image-37283\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/gtm-pageview-1200x438.png?v=1660031576 1200w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/gtm-pageview-300x110.png?v=1660031576 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/gtm-pageview-768x281.png?v=1660031576 768w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/gtm-pageview-1536x561.png?v=1660031576 1536w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2022\/08\/gtm-pageview.png?v=1660031576 1842w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting the Google Analytics ID 4 The first step in measuring Google Analytics with Google Tag Manager is to get the Google Analytics Measurement ID Let&#8217;s Manage -&gt; Data Flows -&gt; Click on the web flow and write down the measurement ID Creating page views tag in Google Tag Manager From Google Tag Manager we [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":34543,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[484],"doc_tag":[],"class_list":["post-34538","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-google-tag-manager"],"year_month":"2026-05","word_count":97,"total_views":"964","reactions":{"happy":"1","normal":"0","sad":"0"},"author_info":{"name":"Daniel Urrutia","author_nicename":"daniel","author_url":"https:\/\/www.arimetrics.com\/en\/blog\/author\/daniel"},"doc_category_info":[{"term_name":"Google Tag Manager","term_url":"https:\/\/www.arimetrics.com\/en\/tutorials-category\/google-tag-manager"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/docs\/34538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/comments?post=34538"}],"version-history":[{"count":0,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/docs\/34538\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media\/34543"}],"wp:attachment":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media?parent=34538"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/doc_category?post=34538"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/doc_tag?post=34538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}