{"id":134639,"date":"2025-03-15T06:35:01","date_gmt":"2025-03-15T06:35:01","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/ga-snippet-and-ga-gtm-tag-on-the-same-page\/"},"modified":"2025-03-15T06:35:01","modified_gmt":"2025-03-15T06:35:01","slug":"ga-snippet-and-ga-gtm-tag-on-the-same-page","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=134639","title":{"rendered":"GA Snippet And GA (GTM) Tag On The Same Page"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>In this article, I\u2019m going to tackle one of the most frequently asked questions out there:<\/p>\n<p><strong>Can you run <a href=\"https:\/\/analytics.google.com\">Google Analytics<\/a> using the snippet AND using a <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a> Tag <em>on the same page<\/em>?<\/strong><\/p>\n<div style=\"aspect-ratio: 1480 \/ 584;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2016\/02\/ga-and-gtm-same-time.jpg\" title=\"Google Analytics and GTM on the same page\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"584\" width=\"1480\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2016\/02\/ga-and-gtm-same-time.jpg#ZgotmplZ\" alt=\"Google Analytics and GTM on the same page\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>There are many facets to this query, so I\u2019ll try to tackle as many of them as I possibly can.<\/p>\n<p>First, a terminology rant. You hear lots of talk about \u201con-page\u201d and \u201cinline\u201d Google Analytics tracking, as that\u2019s what\u2019s used to describe the non-GTM way of tracking Google Analytics. Well, all the power to you, but I think they\u2019re just adding to the confusion. GTM is just as \u201con-page\u201d and \u201cinline\u201d as GA\u2019s own snippet, as both are based on injecting an asynchronous HTTP request that downloads the respective library.<\/p>\n<p>I\u2019ve chosen to use <em>snippet-based tracking<\/em> to describe Google Analytics tracking that\u2019s outside GTM, and <em>Tag-based tracking<\/em> to describe Tags run through GTM. Note the capital \u2018T\u2019, as that\u2019s the syntax I most commonly use in this blog to denote Google Tag Manager assets.<\/p>\n<p>I\u2019m fully aware this distinction can cause confusion as well, but since I\u2019d hesitate to ever call the <code>ga('send',...)<\/code> commands on the page \u201ctags\u201d of any kind, I think this makes a bit more sense.<\/p>\n<p>                <span class=\"simmer\"><br \/>\n  <span class=\"close\">X<\/span><\/p>\n<p>\n    <span class=\"fa fa-md fa-bell\"\/><br \/>\n    <strong>The Simmer Newsletter<\/strong>\n  <\/p>\n<p>\n    Subscribe to the <a href=\"https:\/\/www.simoahava.com\/newsletter\/\">Simmer newsletter<\/a> to get the latest news and content from Simo Ahava into your email inbox!\n  <\/p>\n<p>  <\/span><\/p>\n<h2 id=\"the-premise-what-the-problem-really-is\">The premise: what the problem really is<\/h2>\n<p>Most often this question gets asked when migrating to Google Tag Manager. There was a <em>crazy<\/em> amount of questions about this in the <a href=\"https:\/\/analyticsacademy.withgoogle.com\/course05\">Google Tag Manager Fundamentals<\/a> course forums, where I was volunteering my help. There were so many questions about it that I felt the need to write the following intro to course participants:<\/p>\n<div style=\"aspect-ratio: 2420 \/ 650;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2016\/02\/course-forum.jpg\" title=\"GTM fundamentals course forum\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"650\" width=\"2420\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2016\/02\/course-forum.jpg#ZgotmplZ\" alt=\"GTM fundamentals course forum\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>I don\u2019t know if it helped, but at least it let me jot some things down that would be helpful to anyone pondering about these issues.<\/p>\n<p>The problem itself is usually a manifestation of the following, underlying queries:<\/p>\n<ol>\n<li>\n<p>Will just adding Google Tag Manager to the site break my existing Google Analytics tracking?<\/p>\n<\/li>\n<li>\n<p>Will adding a Google Analytics Tag in GTM break my existing Google Analytics tracking?<\/p>\n<\/li>\n<li>\n<p>Can I run the bulk of my tracking via the Google Analytics snippet, and use Google Tag Manager Tags for tracking certain specific things?<\/p>\n<\/li>\n<li>\n<p>Can I run the bulk of my tracking via Google Tag Manager, and use <code>ga('send',...)<\/code> commands on the page to cover some, usually legacy, tracking needs?<\/p>\n<\/li>\n<li>\n<p>I\u2019m just curious, how does snippet-based tracking differ from GTM\u2019s Tag-based tracking?<\/p>\n<\/li>\n<\/ol>\n<p>The last question is just the best, I can\u2019t wait to get to it!<\/p>\n<p>OK, I\u2019ll start with it! That\u2019s how crazy and unpredictable I am.<\/p>\n<h2 id=\"5-snippet-based-vs-tag-based-tracking\">5. Snippet-based vs. Tag-based tracking<\/h2>\n<p>When you create your Google Analytics tracker using the given <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/?hl=en\">snippet<\/a>, you have the option of providing a <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/creating-trackers#naming_trackers\">tracker name<\/a> vs. using the default name.<\/p>\n<p>For example, if you want to name the tracker <strong>SuperTracker<\/strong>, you\u2019d use the following syntax in the tracker creation command:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">ga(<span style=\"color:#a50\">'create'<\/span>, <span style=\"color:#a50\">'UA-12345-1'<\/span>, {<span style=\"color:#a50\">'name'<\/span> : <span style=\"color:#a50\">'SuperTracker'<\/span>});\n<\/code><\/pre>\n<\/div>\n<p>This would give the tracker a name, after which you interact with it by prefixing all commands sent to the <code>ga()<\/code> queue with the tracker name: <code>ga('SuperTracker.send', 'pageview);<\/code>.<\/p>\n<p>If you <strong>don\u2019t<\/strong> provide a tracker name, you can use the naked <code>ga('send',...)<\/code> syntax, where you don\u2019t use a tracker name prefix. However, the tracker <strong>does<\/strong> have a name: <strong>t0<\/strong> (t-zero). So the following two commands do the same thing:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">ga(<span style=\"color:#a50\">'send'<\/span>, <span style=\"color:#a50\">'pageview'<\/span>);\nga(<span style=\"color:#a50\">'t0.send'<\/span>, <span style=\"color:#a50\">'pageview'<\/span>);\n<\/code><\/pre>\n<\/div>\n<p>This is clear, yes? The reason you\u2019d want to rename the tracker is if you\u2019re running multiple trackers on the page, or due to some very special edge cases I might or might not touch upon later in the article (I\u2019m just making this stuff up as I go along).<\/p>\n<p>Now, with <strong>Google Tag Manager<\/strong> it\u2019s a bit different. In GTM, <em>whenever a Tag is injected<\/em>, i.e. whenever a Tag \u201cfires\u201d (hate that terminology as well) due to some Trigger \u201cfiring\u201d as well, a <strong>new<\/strong> tracker is created with a random, unique name:<\/p>\n<div style=\"aspect-ratio: 1366 \/ 192;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2016\/02\/gtm-tracker-name.jpg\" title=\"Google Tag Manager tracker name\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"192\" width=\"1366\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2016\/02\/gtm-tracker-name.jpg#ZgotmplZ\" alt=\"Google Tag Manager tracker name\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>So here the GTM tracker was created with the name <strong>gtm1454402957304<\/strong>. For you fellow nerds, look at the numbers in that string. Don\u2019t they look vaguely familiar? That\u2019s right, it resembles <a href=\"https:\/\/en.wikipedia.org\/wiki\/Unix_time\">Unix time<\/a>! So, in fact, the tracker name isn\u2019t random, it\u2019s just the exact timestamp of when the tracker was created, down to the millisecond. So it\u2019s not deterministically unique, either, but having two Tags fire at the exact same millisecond is, as far as I know it, next to impossible.<\/p>\n<div style=\"aspect-ratio: 570 \/ 74;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2016\/02\/timestamp.jpg\" title=\"GTM tracker name is a timestamp\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"74\" width=\"570\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2016\/02\/timestamp.jpg#ZgotmplZ\" alt=\"GTM tracker name is a timestamp\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>So, now the major difference is spelled out for you: the GA snippet requires that you either use a fixed, default tracker name when creating the tracker, or you give it a custom name. This tracker name is then used when communicating with the tracker object.<\/p>\n<p>GTM, on the other hand, creates a new, unique tracker name for every single Tag on the page &#8211; even when the same Tag is injected multiple times.<\/p>\n<p>This is, in fact, how GTM manages to navigate through one of the biggest flaws of the platform. I\u2019ve outlined this in a previous article on the dangers of <a href=\"https:\/\/www.simoahava.com\/gtm-tips\/be-careful-with-the-tracker-name-setting\/\">messing with the tracker name<\/a> setting in GTM\u2019s GA Tags. In a nutshell, GTM doesn\u2019t let you assign settings, fields, custom dimensions and the ilk on the hit itself, but they\u2019re always set on the tracker object. This means that they are \u201chit-scoped\u201d by default, since each Tag has its own tracker, but if you mess with the tracker name you\u2019ll run into some unexpected side effects.<\/p>\n<p>Now that we have the basics sorted out, let\u2019s jump into the queries themselves.<\/p>\n<h2 id=\"1-will-google-analytics-break-if-just-google-tag-manager-is-installed-on-the-page\">1. Will Google Analytics break if just Google Tag Manager is installed on the page?<\/h2>\n<p>This is easy to answer:<\/p>\n<p><strong>NO, IT WILL NOT!<\/strong><\/p>\n<p>Remember, Google Tag Manager has nothing to do with Google Analytics when you add the container on the page. It\u2019s just a container, a chassis, a receptacle, a vehicle, a <em>vessel<\/em> (making the most out of my thesaurus here) for your Tags and other arbitrary JavaScript you want to execute on the page.<\/p>\n<p>When you add the Google Tag Manager container snippet to the page, all it does is load a library from Google servers. It doesn\u2019t create any Google Analytics trackers, it doesn\u2019t mess with your tracking code, it doesn\u2019t interfere with other JavaScript running on the site, or anything like that.<\/p>\n<p>In other words, <strong>feel free to add the container snippet to the page the minute you\u2019ve created the container<\/strong>.<\/p>\n<h2 id=\"2-will-adding-a-google-analytics-tag-in-gtm-break-my-existing-tracking\">2. Will adding a Google Analytics Tag in GTM break my existing tracking?<\/h2>\n<p>This is also easy to answer:<\/p>\n<p><strong>NO, IT WILL NOT!<\/strong><\/p>\n<p>Now, choose your favorite conjunct: \u201cHowever\u2026\u201d \/ \u201cBut\u2026\u201d \/ \u201cUnless\u2026\u201d. I\u2019ll go with the first one.<\/p>\n<p>However, if you\u2019ve <strong>manually set the Google Tag Manager tracker name to the GA tracker name<\/strong>, and you don\u2019t know what you\u2019re doing, problems can arise.<\/p>\n<p>I\u2019ve covered many of these cases in my <a href=\"https:\/\/www.simoahava.com\/gtm-tips\/be-careful-with-the-tracker-name-setting\/\">tracker name rant<\/a>.<\/p>\n<p>The most important thing to note is that if the tracker name is shared between the snippet-based tracker and GTM\u2019s Tag, each time a new tracker is created on the page (usually via GTM) with that name, any settings it has will overwrite all the previous settings on any of the trackers.<\/p>\n<p>So, for example, let\u2019s say you\u2019ve created the snippet-based tracker with:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-javascript\" data-lang=\"javascript\">ga(<span style=\"color:#a50\">'create'<\/span>, <span style=\"color:#a50\">'UA-12345-1'<\/span>);\n<\/code><\/pre>\n<\/div>\n<p>And then you set the Tracker name in GTM to <em>blank<\/em>:<\/p>\n<div style=\"aspect-ratio: 742 \/ 788;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2016\/02\/gtm-tracker-name-blank.jpg\" title=\"GTM Tracker Name Blank\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"788\" width=\"742\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2016\/02\/gtm-tracker-name-blank.jpg#ZgotmplZ\" alt=\"GTM Tracker Name Blank\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Now, since you only create the tracker once when using snippet-based GA tracking, any GTM Tag that shares the tracker name and fires <strong>after<\/strong> the snippet-based tracker will <strong>overwrite<\/strong> all the settings that were in the snippet-based tracker.<\/p>\n<p>So, let\u2019s say you\u2019re tracking to <strong>UA-12345-1<\/strong> in the snippet, using the <code>ga('create','UA-12345-1')<\/code> command to create the tracker. Then, you have an Event Tag in GTM, collecting data to \u2018UA-12345-<strong>2<\/strong>\u2019, and firing after 15 seconds of dwell time on the page. If this Tag has the same tracker name as the snippet-based tracker, <strong>any<\/strong> <code>ga('send',...)<\/code> commands you run on the page after this GTM Tag has fired will now use the settings in the GTM Tag, <em>including the new property ID<\/em>.<\/p>\n<p>You can see how this is potentially a huge problem.<\/p>\n<p>But like I wrote in the beginning of this chapter, if you <strong>don\u2019t<\/strong> mess with the tracker name setting, there will be no interference. You can freely track via Google Tag Manager to a Google Analytics property, and then keep the snippet-based tracker collecting data to some other property, if you wish.<\/p>\n<p>This is a great segue to the next question.<\/p>\n<h2 id=\"3-run-the-bulk-of-tracking-via-the-snippet-and-use-gtm-for-specific-things\">3. Run the bulk of tracking via the snippet, and use GTM for specific things<\/h2>\n<p>In this case, we want to <strong>combine<\/strong> snippet-based GA tracking with Google Tag Manager Tags.<\/p>\n<p>Interesting!<\/p>\n<p>Well, it\u2019s certainly doable. You can easily have a snippet-based tracker track to UA-12345-1, and then add the occasional Tag via GTM to also track to UA-12345-1, and you don\u2019t have to make any changes if working with default settings. Google Analytics uses a combination of <strong>Client ID<\/strong> found in the <code>_ga<\/code> cookie together with the UA-XXXXX-Y code to make sure hits are attributed to the same session and the same user.<\/p>\n<p>There are some cases where you <strong>will<\/strong> need to make changes:<\/p>\n<ul>\n<li>\n<p>If you\u2019re using custom <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/field-reference#cookieName\">cookie settings<\/a> in either, make sure they match between the snippet-based tracker and <strong>all<\/strong> the Google Analytics Tags you\u2019re running via Google Tag Manager into the same GA property.<\/p>\n<\/li>\n<li>\n<p>If you\u2019re using custom <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/field-reference#trafficsources\">traffic source tracking<\/a>, make sure you respect these in all the Tags and snippet commands sending data to the same Google Analytics property. For example, if you GA snippet is sending the <strong>?utm-parameters<\/strong> with the page URL, but in GTM you\u2019re overwriting the page name with something customized, it\u2019s possible the GTM Tag will use the <strong>referrer<\/strong> instead, creating a new session since the traffic source changed.<\/p>\n<\/li>\n<\/ul>\n<p>All in all, try to make all fields and settings match between the trackers. This way you won\u2019t run into surprises when one creates a session and the other one creates a new session immediately after due to a discrepancy in the tracker settings.<\/p>\n<h2 id=\"4-using-gtm-to-drive-tracking-and-occasionally-resorting-to-snippet-based-commands\">4. Using GTM to drive tracking, and occasionally resorting to snippet-based commands<\/h2>\n<p>This is a tricky one. Usually it\u2019s because there\u2019s a huge, sprawling legacy library for snippet-based tracking, and the user wants to migrate one command at a time.<\/p>\n<p>The easiest way to make it work is to remember to have the Google Analytics snippet and tracker creation commands on each page as before. If you do this, there won\u2019t be any conflicts as long as you respect the tips in the previous chapter.<\/p>\n<p>However, if you\u2019re in a jam where you only have a <code>ga('send',...)<\/code> command here or there, without any tracker creation via the snippet, things get much more complicated. To make it work, the following things need to happen:<\/p>\n<ol>\n<li>\n<p>The <code>ga('send',...)<\/code> cannot be run before the first GTM Tag has been added to the page. Before that, the <code>ga()<\/code> function doesn\u2019t exist in the global namespace.<\/p>\n<\/li>\n<li>\n<p>The Google Tag Manager Tag needs to have its Tracker Name setting set to blank (if you\u2019re using <code>ga('send',...)<\/code> on the page), or to a custom name, in which case the snippet-based commands need to use that name as well: <code>ga('customName.send',...)<\/code>.<\/p>\n<\/li>\n<\/ol>\n<p>The first one is very difficult to respect, since the Google Tag Manager is downloaded asynchronously. To mitigate this, you can add this line to the <code\/> of each page, before any <code>ga()<\/code> functions are called:<\/p>\n<div class=\"highlight\">\n<pre style=\"background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-html\" data-lang=\"html\">script&gt;\n  <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'GoogleAnalyticsObject'<\/span>] = <span style=\"color:#a50\">'ga'<\/span>;\n  <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'ga'<\/span>] = <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'ga'<\/span>] || <span style=\"color:#00a\">function<\/span>() {\n    (<span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'ga'<\/span>].q = <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'ga'<\/span>].q || []).push(arguments)\n  };\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>This is taken from the <a href=\"https:\/\/www.thyngster.com\/how-does-the-universal-analytics-snippet-work\/\">Universal Analytics snippet<\/a>, and it basically creates a temporary data store for all <code>ga()<\/code> commands that exist before the <strong>analytics.js<\/strong> library has been created.<\/p>\n<p>If you take all the previous tips into account, then there should be minimal problems with combining tracking methods like this. However, it\u2019s still suboptimal, and can lead to unexpected problems due to the complexity of the code you need to manage and maintain.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>What started as a simple foray into tracker discrepancies blossomed into a sprawling, overly complex account of how tracking works across the Google Analytics snippet and Google Tag Manager\u2019s Tag templates.<\/p>\n<p>Bottom line is, if you <strong>do<\/strong> want to combine tracking across the two methods, you need to make sure that tracker settings match across the board.<\/p>\n<p>On the other hand, if you want to track each tracker method to a different Google Analytics property, you need to make sure that certain tracker settings <strong>do NOT match<\/strong> across the trackers.<\/p>\n<p>All in all, you\u2019ll commonly hear people suggesting that you move to Google Tag Manager in all your tracking needs. I tend to agree in general, but there are many, many solid reasons for keeping the snippet-based tracker, at least for a little while.<\/p>\n<p>Whenever I do a migration from snippet-based to Google Tag Manager -based tracking, I run the two simultaneously (to different properties) until I\u2019m satisfied the migration has been a success.<\/p>\n<p>Similarly, it\u2019s not an altogether bad idea to keep the snippet-based tracker on the page for a while, just so you can benchmark the two different tracker setups in your data, and perhaps use the information to improve overall data quality.<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>In this article, I\u2019m going to tackle one of the most frequently asked questions out there: Can you run Google Analytics using the snippet AND using a Google Tag Manager Tag on the same page? There are many facets to this query, so I\u2019ll try to tackle as many of them as I possibly can. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":134640,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[32680,4347,43155,1791],"dealstore":[],"offerexpiration":[],"class_list":["post-134639","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-gtm","tag-page","tag-snippet","tag-tag"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>GA Snippet And GA (GTM) Tag On The Same Page - Som2ny Network<\/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:\/\/fivemor.com\/?p=134639\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GA Snippet And GA (GTM) Tag On The Same Page - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"In this article, I\u2019m going to tackle one of the most frequently asked questions out there: Can you run Google Analytics using the snippet AND using a Google Tag Manager Tag on the same page? There are many facets to this query, so I\u2019ll try to tackle as many of them as I possibly can. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=134639\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-15T06:35:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1480\" \/>\n\t<meta property=\"og:image:height\" content=\"584\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=134639#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=134639\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"GA Snippet And GA (GTM) Tag On The Same Page\",\"datePublished\":\"2025-03-15T06:35:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=134639\"},\"wordCount\":2233,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=134639#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg\",\"keywords\":[\"GTM\",\"Page\",\"Snippet\",\"TAG\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=134639#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=134639\",\"url\":\"https:\/\/fivemor.com\/?p=134639\",\"name\":\"GA Snippet And GA (GTM) Tag On The Same Page - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=134639#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=134639#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg\",\"datePublished\":\"2025-03-15T06:35:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=134639#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=134639\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=134639#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg\",\"width\":1480,\"height\":584},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=134639#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GA Snippet And GA (GTM) Tag On The Same Page\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GA Snippet And GA (GTM) Tag On The Same Page - Som2ny Network","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:\/\/fivemor.com\/?p=134639","og_locale":"en_US","og_type":"article","og_title":"GA Snippet And GA (GTM) Tag On The Same Page - Som2ny Network","og_description":"In this article, I\u2019m going to tackle one of the most frequently asked questions out there: Can you run Google Analytics using the snippet AND using a Google Tag Manager Tag on the same page? There are many facets to this query, so I\u2019ll try to tackle as many of them as I possibly can. [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=134639","og_site_name":"Som2ny Network","article_published_time":"2025-03-15T06:35:01+00:00","og_image":[{"width":1480,"height":584,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=134639#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=134639"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"GA Snippet And GA (GTM) Tag On The Same Page","datePublished":"2025-03-15T06:35:01+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=134639"},"wordCount":2233,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=134639#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg","keywords":["GTM","Page","Snippet","TAG"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=134639#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=134639","url":"https:\/\/fivemor.com\/?p=134639","name":"GA Snippet And GA (GTM) Tag On The Same Page - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=134639#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=134639#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg","datePublished":"2025-03-15T06:35:01+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=134639#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=134639"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=134639#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/ga-and-gtm-same-time.jpg","width":1480,"height":584},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=134639#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"GA Snippet And GA (GTM) Tag On The Same Page"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/134639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134639"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/134639\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/134640"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134639"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=134639"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=134639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}