{"id":4518,"date":"2021-10-07T14:19:19","date_gmt":"2021-10-07T14:19:19","guid":{"rendered":"https:\/\/www.leadshook.com\/help\/?p=4518"},"modified":"2024-02-14T11:40:03","modified_gmt":"2024-02-14T11:40:03","slug":"using-leadshook-with-google-tag-manager-google-analytics-4","status":"publish","type":"post","link":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/","title":{"rendered":"Using LeadsHook with Google Tag Manager &#8211; Google Analytics 4"},"content":{"rendered":"\n<p class=\"has-vivid-red-color has-text-color has-medium-font-size\"><strong>WARNING: This is only applicable for Version 1 decision trees. For Version 2 please refer to this guide: <a href=\"https:\/\/www.leadshook.com\/help\/5-easy-non-techie-steps-to-setup-your-tracking-for-version-2-decision-trees\/\">https:\/\/www.leadshook.com\/help\/5-easy-non-techie-steps-to-setup-your-tracking-for-version-2-decision-trees\/<\/a><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">Please note: This is a new update inside LeadsHook so some functionality could be missing.  Please contact our team for any updates you require.<\/span><\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Our Leadshook GTM Container includes Facebook, TikTok, UA, GA4, and Google Conversion Integrations. <strong> <\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Add GTM-GA4 Container<\/h2>\n\n\n\n<p>Click the green button below.  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\"><strong>NOTE: Unzip the file first<\/strong><\/mark> and then import the GTM Container into your GTM Account. Please see <a href=\"https:\/\/support.google.com\/tagmanager\/answer\/6106997?hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/support.google.com\/tagmanager\/answer\/6106997?hl=en<\/a> how to import a GTM container.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 has-custom-font-size is-style-fill has-medium-font-size\"><a class=\"wp-block-button__link has-cyan-bluish-gray-color has-vivid-green-cyan-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2023\/02\/UPDATED-GTM.zip\" style=\"border-radius:9px\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><span class=\"has-inline-color has-black-color\">Download GTM-GA4 Container<\/span><\/strong><\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Grab the DT Token<\/h2>\n\n\n\n<p>Copy and paste the LH token from inside LeadsHook (see 2 and 3 in the images below)<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"793\" height=\"482\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png\" alt=\"\" class=\"wp-image-4876\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"798\" height=\"518\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/2.png\" alt=\"\" class=\"wp-image-4877\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Updating GTM Variables<\/h2>\n\n\n\n<h4 class=\"wp-block-heading has-vivid-red-color has-text-color\">Don&#8217;t forget to save every time you update any GTM value<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color\">1. Click Variables<\/p>\n\n\n\n<p>2. Facebook Pixel ID<br><br>3. Decision Tree Token<br><br>4. Google UA ID<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1028\" height=\"797\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/3-2.png\" alt=\"\" class=\"wp-image-4883\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"821\" height=\"527\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/4-1.png\" alt=\"\" class=\"wp-image-4887\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading has-vivid-red-color has-text-color\">In case if you have multiple Decision Tree using the same GTM container, you can add the other token using the format as shown below<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"616\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/comma.png\" alt=\"\" class=\"wp-image-4888\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Updating GTM Triggers<\/h2>\n\n\n\n<p>1. Click Triggers<br><br>2. Edit Parent Window Loaded and add your domain<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2564\" height=\"868\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2021\/10\/image-3.png\" alt=\"\" class=\"wp-image-4528\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2412\" height=\"1104\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2021\/10\/image-4.png\" alt=\"\" class=\"wp-image-4529\"\/><\/figure>\n\n\n\n<p><strong>Note:<\/strong> Please make sure <strong>not<\/strong> to include <em>https:\/\/ <\/em>in the Page Hostname field, the value should be either with www or without www.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Updating GTM Tags<\/h2>\n\n\n\n<p>You will first need to grab your GA4 Measurement ID from your GA4 account<\/p>\n\n\n\n<p>1. Click Settings Button<\/p>\n\n\n\n<p>2. Click Data Streams<\/p>\n\n\n\n<p>3. Select your Data Stream<\/p>\n\n\n\n<p>4. Click the copy button for your Measurement ID<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"940\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/5.png\" alt=\"\" class=\"wp-image-4910\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1193\" height=\"279\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/6-2.png\" alt=\"\" class=\"wp-image-4914\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1348\" height=\"485\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/7.png\" alt=\"\" class=\"wp-image-4913\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now you have the GA4 Measurement ID, you can then update the variable within your GTM container.<br><\/p>\n\n\n\n<p>1. Click Tags<\/p>\n\n\n\n<p>2. Click GA4 Configuration and enter your GA4 measurement ID<\/p>\n\n\n\n<p>3. If you want to track your Google Ads Conversion, you may add your Google Ads Conversion Tracking and enter your Google Ad Conversion ID.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1268\" height=\"708\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/8.png\" alt=\"\" class=\"wp-image-4915\"\/><\/figure>\n\n\n\n<p><strong>Here&#8217;s the step-by-step process of how to create a new Conversion Action and add your Conversion ID to your GTM container.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"3600\" height=\"1886\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-1.jpg\" alt=\"\" class=\"wp-image-5090\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2812\" height=\"1884\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-2.jpg\" alt=\"\" class=\"wp-image-5091\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2832\" height=\"1890\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-3.jpg\" alt=\"\" class=\"wp-image-5092\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2842\" height=\"1210\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-4-1.jpg\" alt=\"\" class=\"wp-image-5094\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2894\" height=\"1804\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-5-1.jpg\" alt=\"\" class=\"wp-image-5096\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2272\" height=\"1880\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-6.jpg\" alt=\"\" class=\"wp-image-5097\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2388\" height=\"1878\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-7.jpg\" alt=\"\" class=\"wp-image-5098\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2848\" height=\"1882\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/09\/Google-Ads-Conversions-8.jpg\" alt=\"\" class=\"wp-image-5099\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading has-vivid-red-color has-text-color\">That is the last part of updating the GTM. Please don&#8217;t forget to save\/publish the GTM container.<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1218\" height=\"616\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/publish.png\" alt=\"\" class=\"wp-image-4939\"\/><\/figure>\n\n\n\n<p>Optional: Removing the View Content event _first from Facebook View Event Trigger<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1976\" height=\"942\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/10\/Removing-_First.jpg\" alt=\"\" class=\"wp-image-5182\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Adding Node events for tracking.<br><br>Start Page<\/h2>\n\n\n\n<p>1. Edit any Node you want to add a tracking event and assign your &#8220;Event Identifier&#8221;. This will be appended on your events via GA4 so you can easily tell which node that event fired from. <\/p>\n\n\n\n<p>2. Enable Google UA and GA4 Started Decision Tree event if needed. This will only be available on Start Page node. Each node will have different event options but they would be pretty much similar. <\/p>\n\n\n\n<p>3. Enable Google Ads Conversion if needed.<\/p>\n\n\n\n<p>4. Fire Facebook View Content Event upon Node Entry<\/p>\n\n\n\n<p>5. Fire Facebook View Content Event upon Node Exit<\/p>\n\n\n\n<p>6. Fire Facebook Lead Event upon Node Entry<\/p>\n\n\n\n<p>7. Fire Facebook Lead Event upon Node Exit<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"737\" height=\"670\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/9.png\" alt=\"\" class=\"wp-image-4919\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Question and Answer Node<\/h2>\n\n\n\n<p>1. Tracks the node for GA4 and UA upon Node Entry<\/p>\n\n\n\n<p>2. Tracks the node for GA4 and UA upon node Exit<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"870\" height=\"826\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/QNA.png\" alt=\"\" class=\"wp-image-4931\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Form Node<\/h2>\n\n\n\n<p>1.Tracks the Form node for GA4 and UA upon Node Entry<\/p>\n\n\n\n<p>2.Tracks the Form node for GA4 and UA upon Node Exit<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"816\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/Form.png\" alt=\"\" class=\"wp-image-4932\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Results Page Node<\/h2>\n\n\n\n<p>1. Tracks the Results node for GA4 and UA upon Node Entry<\/p>\n\n\n\n<p>2. Tracks the Results node for Google Ads Conversion upon Node Entry<\/p>\n\n\n\n<p>3. Tracks the Results node for Facebook View Content event upon Node Entry<\/p>\n\n\n\n<p>4. Tracks the Results node for Facebook Lead event upon Node Entry<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"629\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/results.png\" alt=\"\" class=\"wp-image-4934\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading has-vivid-red-color has-text-color\">Important: We currently support Lead and View Content Events from Facebook. If you wish to fire a different Facebook standard event then kindly refer to the video below<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\"><\/h3>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Watch these 2 Videos<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"GTM-GA4-Video1.mp4\" src=\"https:\/\/player.vimeo.com\/video\/625474473?dnt=1&amp;app_id=122963\" width=\"980\" height=\"551\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"GTM-GA4-Video2.mp4\" src=\"https:\/\/player.vimeo.com\/video\/625474997?dnt=1&amp;app_id=122963\" width=\"980\" height=\"551\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Testing Tips&#8230;<\/h2>\n\n\n\n<p>Thanks for latest updates to GTM, you can now see events coming into GTM. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1) Preview Mode <\/h3>\n\n\n\n<p>Use the preview mode to see events coming into GTM.  The goal is to see events coming into GTM first.  Because GTM is sending data to Google Analytics and Facebook, verify data inside GTM first and then in Google Analytics and Facebook.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"3100\" height=\"1614\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-9.png\" alt=\"\" class=\"wp-image-4871\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2092\" height=\"1084\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-10.png\" alt=\"\" class=\"wp-image-4872\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Common &#8216;Gotchas&#8217; <\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Issue #1: Not Completely Updating GTM Container<\/h3>\n\n\n\n<p>After importing, please ensure you make the necessary edits in TAGS, Triggers and Variables. <\/p>\n\n\n\n<p>Currently, you&#8217;ll update 1 Tag, 1 Trigger and 2 Variables<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1) Update GA4 and UA Tag<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2470\" height=\"1508\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-4.png\" alt=\"\" class=\"wp-image-4866\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2342\" height=\"1046\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-3.png\" alt=\"\" class=\"wp-image-4865\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">2) Update 1 Trigger <\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2466\" height=\"1772\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-5.png\" alt=\"\" class=\"wp-image-4867\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2550\" height=\"1440\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-6.png\" alt=\"\" class=\"wp-image-4868\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">3) Update 2 Variables.  <\/h4>\n\n\n\n<p>Search for &#8216;constant&#8217; to filter the list <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2454\" height=\"1746\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-7.png\" alt=\"\" class=\"wp-image-4869\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Issue #2: Activate this Setting When using Direct Link or Custom Domain<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1594\" height=\"1582\" src=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/image-8.png\" alt=\"\" class=\"wp-image-4870\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WARNING: This is only applicable for Version 1 decision trees. For Version 2 please refer to this guide: https:\/\/www.leadshook.com\/help\/5-easy-non-techie-steps-to-setup-your-tracking-for-version-2-decision-trees\/ Please note: This is a new update inside LeadsHook so some functionality could be missing. Please contact our team for any updates you require. Our Leadshook GTM Container includes Facebook, TikTok, UA, GA4, and Google Conversion [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,239],"tags":[],"class_list":["post-4518","post","type-post","status-publish","format-standard","hentry","category-leadshook","category-tracking"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using LeadsHook with Google Tag Manager - Google Analytics 4 - LeadsHook Knowledge Base<\/title>\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.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using LeadsHook with Google Tag Manager - Google Analytics 4 - LeadsHook Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"WARNING: This is only applicable for Version 1 decision trees. For Version 2 please refer to this guide: https:\/\/www.leadshook.com\/help\/5-easy-non-techie-steps-to-setup-your-tracking-for-version-2-decision-trees\/ Please note: This is a new update inside LeadsHook so some functionality could be missing. Please contact our team for any updates you require. Our Leadshook GTM Container includes Facebook, TikTok, UA, GA4, and Google Conversion [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/\" \/>\n<meta property=\"og:site_name\" content=\"LeadsHook Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/leadshook\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-07T14:19:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-14T11:40:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png\" \/>\n<meta name=\"author\" content=\"Nik T\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@leadshook\" \/>\n<meta name=\"twitter:site\" content=\"@leadshook\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nik T\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/\"},\"author\":{\"name\":\"Nik T\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/4bfe37d814563cc729828b7055313f4d\"},\"headline\":\"Using LeadsHook with Google Tag Manager &#8211; Google Analytics 4\",\"datePublished\":\"2021-10-07T14:19:19+00:00\",\"dateModified\":\"2024-02-14T11:40:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/\"},\"wordCount\":723,\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/1-1.png\",\"articleSection\":[\"LeadsHook\",\"Tracking\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/\",\"name\":\"Using LeadsHook with Google Tag Manager - Google Analytics 4 - LeadsHook Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/1-1.png\",\"datePublished\":\"2021-10-07T14:19:19+00:00\",\"dateModified\":\"2024-02-14T11:40:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/1-1.png\",\"contentUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/1-1.png\",\"width\":793,\"height\":482},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/using-leadshook-with-google-tag-manager-google-analytics-4\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using LeadsHook with Google Tag Manager &#8211; Google Analytics 4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"name\":\"LeadsHook Knowledge Base\",\"description\":\"LeadsHook Training &amp; Technical Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\",\"name\":\"LeadsHook\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"width\":350,\"height\":83,\"caption\":\"LeadsHook\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/leadshook\\\/\",\"https:\\\/\\\/x.com\\\/leadshook\",\"https:\\\/\\\/www.linkedin.com\\\/showcase\\\/leadshook\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/4bfe37d814563cc729828b7055313f4d\",\"name\":\"Nik T\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"caption\":\"Nik T\"},\"sameAs\":[\"http:\\\/\\\/www.LeadsHook.com\"],\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/author\\\/nik\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using LeadsHook with Google Tag Manager - Google Analytics 4 - LeadsHook Knowledge Base","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.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/","og_locale":"en_US","og_type":"article","og_title":"Using LeadsHook with Google Tag Manager - Google Analytics 4 - LeadsHook Knowledge Base","og_description":"WARNING: This is only applicable for Version 1 decision trees. For Version 2 please refer to this guide: https:\/\/www.leadshook.com\/help\/5-easy-non-techie-steps-to-setup-your-tracking-for-version-2-decision-trees\/ Please note: This is a new update inside LeadsHook so some functionality could be missing. Please contact our team for any updates you require. Our Leadshook GTM Container includes Facebook, TikTok, UA, GA4, and Google Conversion [&hellip;]","og_url":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/","og_site_name":"LeadsHook Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/leadshook\/","article_published_time":"2021-10-07T14:19:19+00:00","article_modified_time":"2024-02-14T11:40:03+00:00","og_image":[{"url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png","type":"","width":"","height":""}],"author":"Nik T","twitter_card":"summary_large_image","twitter_creator":"@leadshook","twitter_site":"@leadshook","twitter_misc":{"Written by":"Nik T","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#article","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/"},"author":{"name":"Nik T","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/4bfe37d814563cc729828b7055313f4d"},"headline":"Using LeadsHook with Google Tag Manager &#8211; Google Analytics 4","datePublished":"2021-10-07T14:19:19+00:00","dateModified":"2024-02-14T11:40:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/"},"wordCount":723,"publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#primaryimage"},"thumbnailUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png","articleSection":["LeadsHook","Tracking"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/","url":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/","name":"Using LeadsHook with Google Tag Manager - Google Analytics 4 - LeadsHook Knowledge Base","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#primaryimage"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#primaryimage"},"thumbnailUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png","datePublished":"2021-10-07T14:19:19+00:00","dateModified":"2024-02-14T11:40:03+00:00","breadcrumb":{"@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#primaryimage","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2022\/05\/1-1.png","width":793,"height":482},{"@type":"BreadcrumbList","@id":"https:\/\/www.leadshook.com\/help\/using-leadshook-with-google-tag-manager-google-analytics-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.leadshook.com\/help\/"},{"@type":"ListItem","position":2,"name":"Using LeadsHook with Google Tag Manager &#8211; Google Analytics 4"}]},{"@type":"WebSite","@id":"https:\/\/www.leadshook.com\/help\/#website","url":"https:\/\/www.leadshook.com\/help\/","name":"LeadsHook Knowledge Base","description":"LeadsHook Training &amp; Technical Help","publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.leadshook.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.leadshook.com\/help\/#organization","name":"LeadsHook","url":"https:\/\/www.leadshook.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","width":350,"height":83,"caption":"LeadsHook"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/leadshook\/","https:\/\/x.com\/leadshook","https:\/\/www.linkedin.com\/showcase\/leadshook\/"]},{"@type":"Person","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/4bfe37d814563cc729828b7055313f4d","name":"Nik T","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","caption":"Nik T"},"sameAs":["http:\/\/www.LeadsHook.com"],"url":"https:\/\/www.leadshook.com\/help\/author\/nik\/"}]}},"_links":{"self":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/4518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/comments?post=4518"}],"version-history":[{"count":60,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/4518\/revisions"}],"predecessor-version":[{"id":7021,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/4518\/revisions\/7021"}],"wp:attachment":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/media?parent=4518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/categories?post=4518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/tags?post=4518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}