{"id":68154,"date":"2022-10-22T12:31:00","date_gmt":"2022-10-22T12:31:00","guid":{"rendered":"https:\/\/morningtrain.dk\/google-tag-manager-setup\/"},"modified":"2026-04-17T12:57:15","modified_gmt":"2026-04-17T12:57:15","slug":"google-tag-manager-setup","status":"publish","type":"post","link":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/","title":{"rendered":"Google Tag Manager setup"},"content":{"rendered":"\n<section class=\"wp-block-mt-blog-post-cover mt-blog-post-cover\"><div class=\"mt-blog-post-cover__inner page-container\"><div class=\"mt-blog-post-cover__text-container\"><p class=\"mt-blog-post-cover__tagline tagline\">Data insights<\/p><p class=\"mt-blog-post-cover__date\">22. oktober 2022<\/p><h1 class=\"mt-blog-post-cover__title\">Google Tag Manager setup<\/h1><\/div><div class=\"wp-block-post-excerpt\"><p class=\"wp-block-post-excerpt__excerpt\">This post is structured as a guide on how to set up Google Tag Manager (GTM). In the guide, we cover event tracking in Google Tag Manager, as well as how it can then be connected to Google Analytics. <\/p><\/div>\n\n<figure class=\"wp-block-post-featured-image\"><img decoding=\"async\" width=\"1248\" height=\"720\" src=\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" style=\"object-fit:cover;\" srcset=\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png 1248w, https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning-300x173.png 300w, https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning-1024x591.png 1024w, https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning-768x443.png 768w, https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning-600x346.png 600w\" sizes=\"(max-width: 1248px) 100vw, 1248px\" \/><\/figure><\/div><\/section>\n<section\n    class=\"mt-blog-post-content mt-blog-post-content--has-table-of-contents mtSpacing-top-none mtSpacing-bottom-medium\"\n>\n    <div class=\"mt-blog-post-content__inner page-container\">\n        <div class=\"mt-blog-post-content__table-of-contents\">\n                                                <p class=\"mt-blog-post-content__table-of-contents-title\">\n                        Indhold\n                    <\/p>\n                                                    <a\n                        href=\"#opsaetning\"\n                        class=\"mt-blog-post-content__table-of-contents-item\"\n                    >\n                        Ops\u00e6tning\n                    <\/a>\n                                    <a\n                        href=\"#konfigurering\"\n                        class=\"mt-blog-post-content__table-of-contents-item\"\n                    >\n                        Konfigurering\n                    <\/a>\n                                    <a\n                        href=\"#konverteringer\"\n                        class=\"mt-blog-post-content__table-of-contents-item\"\n                    >\n                        Eventsporing\n                    <\/a>\n                                    <a\n                        href=\"#konklusion\"\n                        class=\"mt-blog-post-content__table-of-contents-item\"\n                    >\n                        Konklusion\n                    <\/a>\n                                    <a\n                        href=\"#faldgrupper\"\n                        class=\"mt-blog-post-content__table-of-contents-item\"\n                    >\n                        Undg\u00e5 faldgrupper\n                    <\/a>\n                                  <\/div>\n        <div class=\"mt-blog-post-content__items\">\n                            \n\n<h2 class=\"wp-block-heading\">The 3-step rocket<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The events you have set up in Google Tag Manager (GTM) can be used to create and track goals and give you more control over tracking any conversion you may want to collect data on.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>First, you will find a 5-step guide on how to set up your Google Tag Manager.<\/li>\n\n\n\n<li>Next, you will be taken through 24 points on how to set up tracking in GTM.<\/li>\n\n\n\n<li>Finally, we guide you through how to import your goals into <a href=\"https:\/\/morningtrain.dk\/hvad-er-google-ads\/\" type=\"post\" id=\"63683\">Google Ads<\/a>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"opsaetning\">Setting up Google Tag Manager<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This section is a detailed guide to setting up tracking via GTM\u2014so if you already have that under control, simply skip ahead to the next chapter.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <a href=\"https:\/\/tagmanager.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/tagmanager.google.com\/<\/a><\/li>\n\n\n\n<li>Sign up for a free account by clicking \u201cCreate account\u201d on the right-hand side.<\/li>\n\n\n\n<li>Fill in the fields about your company, your website address, and whether it is an app, a website, or something else you want to track.<\/li>\n\n\n\n<li>Tick the \u201cAccept\u201d checkbox at the bottom of the terms of service, and then click \u201cYes\u201d in the top-right corner.<\/li>\n\n\n\n<li>A modal box will now appear with two pieces of JavaScript that you need to add to your website\u2019s code in your <a href=\"https:\/\/morningtrain.dk\/en\/what-is-a-cms-and-what-should-you-be-aware-of\/\">CMS backend<\/a>.<br\/>One tag must go in the &lt;head&gt; file, before the final &lt;\/head&gt; tag. And the other in &lt;body&gt;, so that in the future you can insert scripts into these files via GTM. <br\/><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it\u2014GTM is set up. Now for setting up tracking. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"konfigurering\">Configuring GTM and setting up tracking<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Start by going to \u201cVariables\u201d, then click \u201cConfigure\u201d.<\/li>\n\n\n\n<li>Tick the following in the menu that appears on the right:<br\/>&#8211; Click Element<br\/>&#8211; Click Classes<br\/>&#8211; Click ID<br\/>&#8211; Click Target<br\/>&#8211; Click URL<br\/>&#8211; Click Text<br\/>&#8211; Form Element<br\/>&#8211; Form Classes<br\/>&#8211; Form ID<br\/>&#8211; Form Target<br\/>&#8211; Form URL<br\/>&#8211; Form TextYou can also tick more, so you can track, for example, scroll and video views, but this is not important for lead generation.<\/li>\n\n\n\n<li>Click the X in the left corner of the box.<\/li>\n\n\n\n<li>Click \u201cSubmit\u201d in the top-right corner, then \u201cPublish\u201d, and finally \u201cContinue\u201d.<\/li>\n\n\n\n<li>To track events via GTM, you first need to find a unique parameter to track. Start by creating a \u201cPreview\u201d with the landing page you want to track. <\/li>\n\n\n\n<li>Click \u201cPreview\u201d on the right-hand side.<\/li>\n\n\n\n<li>Enter the URL of the page you want to track.<\/li>\n\n\n\n<li>Tag Manager will now open the page you want to track. Here you can click buttons, fill out forms, etc., so you can see which events are fired when you do so. <\/li>\n\n\n\n<li>Once you have clicked around the page and performed conversion actions, you can go back to GTM and see which events were fired, so you can find something unique to track.<br\/>In the example below, we have filled out a contact form. Now we know a unique variable that only occurs for this event. Then we can set up tracking for the event.  <\/li>\n\n\n\n<li>Go to \u201cTags\u201d in the menu on the left, and click \u201cNew\u201d in the top-right corner.<\/li>\n\n\n\n<li>Give the \u201ctag\u201d a name, and start by creating a \u201cTrigger\u201d.<\/li>\n\n\n\n<li>Click the small blue \u201c+\u201d in the top-right corner.<\/li>\n\n\n\n<li>Give your trigger a meaningful internal name, then click \u201cTrigger Configuration\u201d.<\/li>\n\n\n\n<li>A box will now appear on the right, giving you a range of tracking options based on the action you performed. In the case of this contact form, it was a \u201cClick\u201d event, and no link was clicked, so we choose \u201cAll Elements\u201d. <\/li>\n\n\n\n<li>Since you do not want to track all clicks, choose \u201cSome Clicks\u201d.<\/li>\n\n\n\n<li>Fill in the box that now appears based on the unique event you found. Our event was a so-called \u201cClick Classes\u201d that contains \u201cwpcf7-form-control has-spinner wpcf7-submit button default\u201d. <\/li>\n\n\n\n<li>You have now finished the trigger\u2014i.e., the event that triggers an event. Now you can define what happens when this event is triggered.<br\/>Now click \u201cTag Configuration\u201d. <\/li>\n\n\n\n<li>Another list of options will now appear. Here you choose GA4 Event (this of course requires that you have set up GA4). <\/li>\n\n\n\n<li>Select \u201cGA4 \u2013 Configuration\u201d in the first dropdown, and give the event a meaningful internal name (this is the name the conversion will have in Google Analytics, so choose carefully). \ud83d\ude09<\/li>\n\n\n\n<li>Click \u201cSave\u201d in the top-right corner.<\/li>\n\n\n\n<li>You will then return to the overview. Now click \u201cSubmit\u201d, then \u201cPublish\u201d, and finally \u201cContinue\u201d, just like last time. <\/li>\n\n\n\n<li>You can now go to \u201cPreview\u201d mode and perform the conversion action again to see whether the tag you just created is fired now\u2014if yes, then tracking works.<br\/>You can check in the \u201cTags\u201d tab which tags are fired for a given event. In the example below, we clicked a phone number, and the event that tracks clicks on phone numbers is correctly fired. <\/li>\n\n\n\n<li>Now go to GA4 at analytics.google.com and log in with your user.<\/li>\n\n\n\n<li>Select \u201cConfigure\u201d in the left-hand column, then click \u201cEvents\u201d.<\/li>\n\n\n\n<li>Below, your newly created GTM event will automatically appear after 48 hours.<\/li>\n\n\n\n<li>Now simply tick \u201cMark as conversion\u201d for it to become a conversion event.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"konverteringer\">Import conversions into Google Ads<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">BOOM\u2014you have now set up tracking for a contact form. Now you need to repeat the process x times to cover all your conversion events. Yes, it takes a bit of time, but it is also something you only need to do once.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To use your tracking for lead generation, the conversion events you set up in GA4 must be imported into Google Ads or LinkedIn.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span style=\"font-size: 12.0pt; line-height: 115%;\">Below is a guide to importing conversions in Google Ads:<\/span><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to your Google Ads at <a href=\"https:\/\/ads.google.com\/intl\/en_DK\/home\/\" target=\"_blank\" rel=\"noreferrer noopener\">ads.google.com<\/a>, and select the profile you are working from.<\/li>\n\n\n\n<li>Click \u201cTools and settings\u201d in the menu at the top right (the one with the wrench).<\/li>\n\n\n\n<li>Navigate to the \u201cMeasurement\u201d column and click \u201cConversions\u201d.<\/li>\n\n\n\n<li>Click the large blue button in the top-left corner, \u201cNew conversion action\u201d.<\/li>\n\n\n\n<li>Then select \u201cImport\u201d.<\/li>\n\n\n\n<li>Click \u201cGoogle Analytics 4 properties\u201d and then \u201cWeb\u201d.<\/li>\n\n\n\n<li>You will now see an overview of conversion events that you can import into Google Ads. Tick the events to be imported, then click \u201cImport and continue\u201d. <\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"konklusion\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it\u2014now you have the tracking foundation in place. You have now come this far: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You have set up tracking<\/li>\n\n\n\n<li><strong><u>You are now ready to set up campaigns.<\/u><\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u00a0<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faldgrupper\">Avoid these pitfalls in Google Tag Manager tracking<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Be careful not to track too much\u2014but of course also not too little. It is easy to get carried away tracking everything, but for each conversion event you set up, it becomes harder to distinguish which conversions a given campaign has generated.<br\/>You risk prioritising budget for, for example, a campaign that generates traffic that scrolls far down the page, rather than the campaign that generates leads in the form of contact form submissions. <\/li>\n\n\n\n<li>Stick to conversions in the \u201cleads\u201d category\u2014whether they are MQLs (email sign-ups, brochure downloads, etc.) or SQLs (get a quote or a call)\u2014you should \u201conly\u201d track the leads that sales handles.<\/li>\n\n\n\n<li>Remember to check, double-check, and triple-check that tracking works correctly.<\/li>\n\n\n\n<li>All companies that truly want to take lead generation seriously should set up <a href=\"https:\/\/morningtrain.dk\/en\/the-marketing-dictionary\/#opkaldssporing\">call tracking<\/a>, so you can actually track incoming calls. You can set it up so that only traffic from selected channels is affected, and also so that only selected phone numbers are included\u2014so sales numbers are tracked but support numbers are not. <a href=\"https:\/\/morningtrain.dk\/en\/what-is-call-tracking\/\" type=\"post\" id=\"63107\"><strong>Read more about call tracking here<\/strong><\/a><strong>.<\/strong> <\/li>\n<\/ul>\n\n\n                                            <\/div>\n        <div class=\"mt-blog-post-content__small-related-posts\">\n                                <\/div>\n    <\/div>\n    <\/section>\n\n","protected":false},"excerpt":{"rendered":"<p>This post is structured as a guide on how to set up <a href=\"https:\/\/morningtrain.dk\/en\/what-is-google-tag-manager\/\" type=\"post\" id=\"63791\">Google Tag Manager<\/a> (GTM). In the guide, we cover <strong>event tracking<\/strong> in Google Tag Manager, as well as how it can then be connected to <a href=\"https:\/\/morningtrain.dk\/en\/what-is-google-analytics\/\" type=\"post\" id=\"63797\">Google Analytics<\/a>. <\/p>\n","protected":false},"author":2,"featured_media":68157,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[396],"tags":[],"class_list":["post-68154","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-insights"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Google Tag Manager setup | Morningtrain\u2019s complete guide<\/title>\n<meta name=\"description\" content=\"This post is our complete, in-depth guide that walks you through how you can set up tracking on your website yourself using GTM.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Tag Manager setup | Morningtrain\u2019s complete guide\" \/>\n<meta property=\"og:description\" content=\"This post is our complete, in-depth guide that walks you through how you can set up tracking on your website yourself using GTM.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\" \/>\n<meta property=\"og:site_name\" content=\"Morningtrain\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-22T12:31:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-17T12:57:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1248\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Morningtrain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Morningtrain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\"},\"author\":{\"name\":\"Morningtrain\",\"@id\":\"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/95ca11b85ef369eb175acec694b8f213\"},\"headline\":\"Google Tag Manager setup\",\"datePublished\":\"2022-10-22T12:31:00+00:00\",\"dateModified\":\"2026-04-17T12:57:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\"},\"wordCount\":1237,\"image\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png\",\"articleSection\":[\"Data insights\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\",\"url\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\",\"name\":\"Google Tag Manager setup | Morningtrain\u2019s complete guide\",\"isPartOf\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png\",\"datePublished\":\"2022-10-22T12:31:00+00:00\",\"dateModified\":\"2026-04-17T12:57:15+00:00\",\"author\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/95ca11b85ef369eb175acec694b8f213\"},\"description\":\"This post is our complete, in-depth guide that walks you through how you can set up tracking on your website yourself using GTM.\",\"breadcrumb\":{\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage\",\"url\":\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png\",\"contentUrl\":\"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png\",\"width\":1248,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/morningtrain.dk\/en\/?page_id=66552\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Tag Manager setup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/morningtrain.dk\/en\/#website\",\"url\":\"https:\/\/morningtrain.dk\/en\/\",\"name\":\"Morningtrain\",\"description\":\"Digitalt bureau p\u00e5 1&#039; klasse\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/morningtrain.dk\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/95ca11b85ef369eb175acec694b8f213\",\"name\":\"Morningtrain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fd075e8683b261d91c3301b56488ad80cf3904fe4d37c719c33a938e840d29c9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fd075e8683b261d91c3301b56488ad80cf3904fe4d37c719c33a938e840d29c9?s=96&d=mm&r=g\",\"caption\":\"Morningtrain\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Tag Manager setup | Morningtrain\u2019s complete guide","description":"This post is our complete, in-depth guide that walks you through how you can set up tracking on your website yourself using GTM.","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:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/","og_locale":"en_US","og_type":"article","og_title":"Google Tag Manager setup | Morningtrain\u2019s complete guide","og_description":"This post is our complete, in-depth guide that walks you through how you can set up tracking on your website yourself using GTM.","og_url":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/","og_site_name":"Morningtrain","article_published_time":"2022-10-22T12:31:00+00:00","article_modified_time":"2026-04-17T12:57:15+00:00","og_image":[{"width":1248,"height":720,"url":"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png","type":"image\/png"}],"author":"Morningtrain","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Morningtrain","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#article","isPartOf":{"@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/"},"author":{"name":"Morningtrain","@id":"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/95ca11b85ef369eb175acec694b8f213"},"headline":"Google Tag Manager setup","datePublished":"2022-10-22T12:31:00+00:00","dateModified":"2026-04-17T12:57:15+00:00","mainEntityOfPage":{"@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/"},"wordCount":1237,"image":{"@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png","articleSection":["Data insights"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/","url":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/","name":"Google Tag Manager setup | Morningtrain\u2019s complete guide","isPartOf":{"@id":"https:\/\/morningtrain.dk\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage"},"image":{"@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png","datePublished":"2022-10-22T12:31:00+00:00","dateModified":"2026-04-17T12:57:15+00:00","author":{"@id":"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/95ca11b85ef369eb175acec694b8f213"},"description":"This post is our complete, in-depth guide that walks you through how you can set up tracking on your website yourself using GTM.","breadcrumb":{"@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#primaryimage","url":"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png","contentUrl":"https:\/\/morningtrain.dk\/wp-content\/uploads\/2022\/10\/Google-Tag-Manager-opsaetning.png","width":1248,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/morningtrain.dk\/en\/google-tag-manager-setup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/morningtrain.dk\/en\/?page_id=66552"},{"@type":"ListItem","position":2,"name":"Google Tag Manager setup"}]},{"@type":"WebSite","@id":"https:\/\/morningtrain.dk\/en\/#website","url":"https:\/\/morningtrain.dk\/en\/","name":"Morningtrain","description":"Digitalt bureau p\u00e5 1&#039; klasse","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/morningtrain.dk\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/95ca11b85ef369eb175acec694b8f213","name":"Morningtrain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/morningtrain.dk\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fd075e8683b261d91c3301b56488ad80cf3904fe4d37c719c33a938e840d29c9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fd075e8683b261d91c3301b56488ad80cf3904fe4d37c719c33a938e840d29c9?s=96&d=mm&r=g","caption":"Morningtrain"}}]}},"_links":{"self":[{"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/posts\/68154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/comments?post=68154"}],"version-history":[{"count":6,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/posts\/68154\/revisions"}],"predecessor-version":[{"id":68422,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/posts\/68154\/revisions\/68422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/media\/68157"}],"wp:attachment":[{"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/media?parent=68154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/categories?post=68154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morningtrain.dk\/en\/wp-json\/wp\/v2\/tags?post=68154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}