{"id":169276,"date":"2025-04-03T14:59:43","date_gmt":"2025-04-03T14:59:43","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/simple-split-test-with-google-tag-manager\/"},"modified":"2025-04-03T14:59:43","modified_gmt":"2025-04-03T14:59:43","slug":"simple-split-test-with-google-tag-manager","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=169276","title":{"rendered":"Simple Split Test With Google Tag Manager"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>Over the last couple of posts I\u2019ve <a href=\"https:\/\/www.simoahava.com\/analytics\/send-mail-upon-google-tag-manager-event\/\">mainly<\/a> <a href=\"https:\/\/www.simoahava.com\/analytics\/google-tag-manager-dom-listener\/\">been<\/a> <a href=\"https:\/\/www.simoahava.com\/analytics\/form-tracking-google-tag-manager\/\">doing<\/a> proof-of-concept (POC) tests with <a href=\"https:\/\/www.google.com\/tagmanager\">Google Tag Manager<\/a>. The great thing about a POC is that you don\u2019t really need to have any viable results or insight-driving technological innovations. The point is to showcase some feature of the platform on which the experiment was conducted.<\/p>\n<p>In this post, I\u2019ll take a care-free step into the world of POCs again. My goal is to do a simple split test in order to identify which variant of a landing page (or key element thereof) produces the most conversions.<\/p>\n<p>This isn\u2019t a replacement for any of the <a href=\"http:\/\/www.conversion-rate-experts.com\/split-testing-software\/\">REAL A\/B testing tools<\/a> out there. Rather, this is a way for me to showcase yet another way to utilize the wonderful complexity of GTM\u2019s JavaScript wizardry.<\/p>\n<p>Anyway, this is what you\u2019ll (hopefully) take with you after reading this post:<\/p>\n<p>Combine these and you have a split test in the making!<\/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-end-result\">The end result<\/h2>\n<p>This is how it\u2019s going to go down. Exactly 50% of people viewing the experiment page will see the following button:<\/p>\n<div style=\"aspect-ratio: 251 \/ 44;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/click-here-dollars.jpg\" title=\"Click here to make dollars\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"44\" width=\"251\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/click-here-dollars.jpg#ZgotmplZ\" alt=\"Click here to make dollars\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>This is also the control variant. It\u2019s the one I\u2019ve used for years and years to make millions upon millions to my faithful followers (just kidding). However, I want to see if a more nonchalant approach to click baiting would work (and I want to appeal to the younger, less critical demographic), so this is the test variant shown to the other 50%:<\/p>\n<div style=\"aspect-ratio: 249 \/ 44;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/click-here-whatever.jpg\" title=\"Click here, whatever\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"44\" width=\"249\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/click-here-whatever.jpg#ZgotmplZ\" alt=\"Click here, whatever\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>So I\u2019ll be measuring just how many clicks each of these buttons collect. In the end, I should see it in my reports both as events and as a Custom Dimension. Here\u2019s what a goal conversion report would look like for the two variations.<\/p>\n<div style=\"aspect-ratio: 963 \/ 221;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/report-ga.jpg\" title=\"Split Test Report in Google Analytics\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"221\" width=\"963\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/report-ga.jpg#ZgotmplZ\" alt=\"Split Test Report in Google Analytics\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>It\u2019s not exactly hard science, but it got the job done. Surprisingly, the control variant was stronger, producing more conversions (who would\u2019ve guessed?!).<\/p>\n<h2 id=\"setting-up-gtm\">Setting up GTM<\/h2>\n<p>For this experiment, you\u2019ll need the following:<\/p>\n<ol>\n<li>\n<p>1st Party Cookie Macro {{Split Variation Cookie}}<\/p>\n<\/li>\n<li>\n<p>Random Number Macro {{Random Number}}<\/p>\n<\/li>\n<li>\n<p>Custom HTML Tag<\/p>\n<\/li>\n<li>\n<p>Custom Dimension<\/p>\n<\/li>\n<li>\n<p>Universal Analytics Event Tag<\/p>\n<\/li>\n<\/ol>\n<h3 id=\"1st-party-cookie-macro\">1st Party Cookie Macro<\/h3>\n<p>You\u2019ll need a 1st party cookie to make sure the same user sees the same variant every time s\/he visits the page. So when the variant is first assigned to the user, this cookie is also written. The cookie will return the value of the variant, which is important for the Event Tag and Custom Dimension as well.<\/p>\n<ol>\n<li>\n<p>Create a new 1st Party Cookie Macro<\/p>\n<\/li>\n<li>\n<p>Name it <strong>Split Variation Cookie<\/strong><\/p>\n<\/li>\n<li>\n<p>Set <em>Cookie Name<\/em> to <strong>splitVar<\/strong><\/p>\n<\/li>\n<\/ol>\n<p>So something like this:<\/p>\n<div style=\"aspect-ratio: 347 \/ 284;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/split-cookie.jpg\" title=\"Split Variation cookie\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"284\" width=\"347\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/split-cookie.jpg#ZgotmplZ\" alt=\"Split Variation cookie\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>This macro will return the value of cookie <strong>splitVar<\/strong> which, as we will soon learn, stores the variant the user should see during the experiment.<\/p>\n<h3 id=\"random-number-macro\">Random Number Macro<\/h3>\n<p>I\u2019ll use the Random Number Macro to sample 50 % of my visitors. It\u2019s a nice trick, and I first saw it on <a href=\"http:\/\/dan-russell.com\/2013\/03\/sampling-a-percentage-of-your-users-with-google-tag-manager\/\">Dan Russell\u2019s blog<\/a>.<\/p>\n<ol>\n<li>\n<p>Create a new Random Number Macro<\/p>\n<\/li>\n<li>\n<p>Name it <strong>Random Number<\/strong><\/p>\n<\/li>\n<\/ol>\n<p>Here we go:<\/p>\n<div style=\"aspect-ratio: 442 \/ 207;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/random-number.jpg\" title=\"Random Number Macro\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"207\" width=\"442\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/random-number.jpg#ZgotmplZ\" alt=\"Random Number Macro\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>So every time this macro is called, it returns a value between 0 and 2147483647. Can you see how useful this is for sampling? If I check if {{Random Number}}\n<\/p>\n<h3 id=\"custom-html-tag\">Custom HTML Tag<\/h3>\n<p>This is where the magic happens. You\u2019ll need a Custom HTML Tag to perform a wide variety of things: modify the DOM element, identify the user\u2019s preferred variant, set and read a cookie, etc\u2026<\/p>\n<p>Let\u2019s start with the code itself. This is what the tag should have. Remember to have it fire on all pages on which the experiment is run.<\/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:#00a\">function<\/span> testVariant() {\n    controlElement.style.backgroundColor=<span style=\"color:#a50\">\"#000099\"<\/span>;\n    controlElement.innerHTML=<span style=\"color:#a50\">\"**Click here if you want, whatever**\"<\/span>;\n    <span style=\"color:#00a\">return<\/span> variantTwo;\n  }\n  \n  <span style=\"color:#00a\">var<\/span> controlElement = <span style=\"color:#0aa\">document<\/span>.getElementById(<span style=\"color:#a50\">\"call-to-action\"<\/span>), <span style=\"color:#aaa;font-style:italic\">\/\/ Set ID of control element\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>      variantOne = <span style=\"color:#a50\">\"clickDollars\"<\/span>, <span style=\"color:#aaa;font-style:italic\">\/\/ Variation 1 name\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>      variantTwo = <span style=\"color:#a50\">\"clickWhatever\"<\/span>, <span style=\"color:#aaa;font-style:italic\">\/\/ Variation 2 name\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>      variant = variantOne, \n      randomNumSample = <span style=\"color:#099\">1073741824<\/span>;\n\n  <span style=\"color:#00a\">if<\/span>(!{{Split Variation Cookie}} &amp;&amp; controlElement) { <span style=\"color:#aaa;font-style:italic\">\/\/ If cookie isn't set run code\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>    <span style=\"color:#00a\">if<\/span>({{Random <span style=\"color:#0aa\">Number<\/span>}} \/\/ For 50 % of hits, fire Variation 2\n<span style=\"color:#aaa;font-style:italic\"\/>    }\n    <span style=\"color:#00a\">var<\/span> d = <span style=\"color:#00a\">new<\/span> <span style=\"color:#0aa\">Date<\/span>(); <span style=\"color:#aaa;font-style:italic\">\/\/ Create cookie\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>    d.setTime(d.getTime()+<span style=\"color:#099\">1000<\/span>*<span style=\"color:#099\">60<\/span>*<span style=\"color:#099\">60<\/span>*<span style=\"color:#099\">24<\/span>*<span style=\"color:#099\">730<\/span>);\n    <span style=\"color:#00a\">var<\/span> expires = <span style=\"color:#a50\">\"expires=\"<\/span>+d.toGMTString();\n    <span style=\"color:#0aa\">document<\/span>.cookie = <span style=\"color:#a50\">\"splitVar=\"<\/span>+variant+<span style=\"color:#a50\">\"; \"<\/span>+expires+<span style=\"color:#a50\">\"; path=\/\"<\/span>;\n  } <span style=\"color:#00a\">else<\/span> <span style=\"color:#00a\">if<\/span>({{Split Variation Cookie}} == variantTwo &amp;&amp; controlElement) { <span style=\"color:#aaa;font-style:italic\">\/\/ If user has only seen Variation 2\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>    variant = testVariant();\n  }\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>Let\u2019s go over this code.<\/p>\n<p><strong>Lines 2\u20136<\/strong> contain the code which modifies a pre-set DOM element. Thus this function operates the actual split test, showing a different variation of the landing page for 50 % of users. This function returns the name of variation 2.<\/p>\n<p><strong>Lines 8\u201312<\/strong> set up some variables for this script to work. Change <strong>call-to-action<\/strong> in <em>getElementById(\u201ccall-to-action\u201d);<\/em> to match the ID attribute of the HTML element you want to dabble with on the page. Change string values for <strong>variationOne<\/strong> and <strong>variationTwo<\/strong> to match how you want to name or two variants. These values will be used in your GA reports. Finally, the variable <strong>randomNumSample<\/strong> contains a numerical value exactly 50 % of the maximum the Random Number Macro can return.<\/p>\n<p><strong>Lines 14\u201321<\/strong> first test if you\u2019ve already been assigned a variation by checking your cookies. If no cookie is found, you\u2019re a new user, and a variation must be assigned to you. In this case, the script randomly assigns you either the control variant (the default, \u201cclickDollars\u201d) or the test variation (\u201cclickWhatever\u201d). Next, it writes this information in a cookie which will stay with you for a long time.<\/p>\n<p><strong>Lines 22\u201324<\/strong> are executed if the cookie <strong>is<\/strong> found. In this case, if the variant that was assigned to you was the test variation, the DOM altering function from the beginning (see lines 2\u20136) is run again to make sure you always see the same variation of the landing page. If the variant that was assigned to you was the control variation, nothing happens, since that\u2019s the default version of the landing page.<\/p>\n<p>Some things to note. First of all, the cookie is set for two years, so it mimics the _ga cookie. The point is that the user should always see the same variation (provided they\u2019re using the same browser). For some split tests this isn\u2019t necessary, so you can change the code to forgo the cookie check. Also, all the functions test for undefined values (both of the cookie and the control element), so I didn\u2019t see the need to add unnecessary try\u2026catch blocks or anything else.<\/p>\n<p><strong>Pro tip<\/strong> &#8211; Make use of the rarely utilized custom firing schedule for this tag to make sure your experiment only runs a certain time:<\/p>\n<div style=\"aspect-ratio: 602 \/ 219;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/tag-firing-schedule.jpg\" title=\"Custom firing schedule for tag\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"219\" width=\"602\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/tag-firing-schedule.jpg#ZgotmplZ\" alt=\"Custom firing schedule for tag\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h3 id=\"custom-dimension\">Custom Dimension<\/h3>\n<p>You\u2019ll need to create a new user-scope Custom Dimension, so that you\u2019ll have one additional segment to play around with in your data.<\/p>\n<ol>\n<li>\n<p>Go to Google Analytics admin, and choose the property you\u2019ll be tracking these hits to<\/p>\n<\/li>\n<li>\n<p>Choose Custom Definitions &gt; Custom Dimensions, and create a new user-scope CD<\/p>\n<\/li>\n<li>\n<p>Give it a descriptive name (I named mine just <strong>Test variation<\/strong>)<\/p>\n<\/li>\n<li>\n<p>Make note of dimension index<\/p>\n<\/li>\n<\/ol>\n<p>So something like this:<\/p>\n<div style=\"aspect-ratio: 355 \/ 259;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/custom-dimension.jpg\" title=\"Custom Dimension for test variation\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"259\" width=\"355\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/custom-dimension.jpg#ZgotmplZ\" alt=\"Custom Dimension for test variation\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>You could also use a session-scope or even a hit-scope dimension, depending on the scope of your test. However, even though I\u2019m not a professional CRO practitioner (far from it!), I see the benefit of observing interactions on a multi-visit, <em>user<\/em>-level rather than the relatively tiny realm of a single visit or hit. However, some web design questions can probably be answered on a more limited scope, I guess.<\/p>\n<h3 id=\"universal-analytics-event-tag\">Universal Analytics Event Tag<\/h3>\n<p>The last bit you\u2019ll need is some event that\u2019s firing and sending your data to Google Analytics. Because I\u2019m observing a button (that I\u2019ve encased in an <code><a href...=\"\"\/><\/code> element), I\u2019m also using a Link Click Listener. If that says nothing to you, be sure to check out my <a href=\"https:\/\/www.simoahava.com\/analytics\/auto-event-tracking-google-tag-manager\/\">guide on auto-event tracking<\/a>.<\/p>\n<p>So anyway, I\u2019ve got a Link Click Listener firing on the test page. What I want to know is just what variant the user was seeing when they clicked the button. This is how I\u2019ll count my conversions and determine which variant was the winner. I\u2019ll also send the Custom Dimension with the event, so that the user is properly annotated with the variant name. I\u2019m sending the CD with the event simply because it\u2019s convenient for the scope of this article. You should definitely send it with the pageview, so that you can segment your visitors properly (e.g. out of people who saw the control variant, how many clicked the button; out of people who saw the test variant, how many clicked the button).<\/p>\n<p>My Event Tag looks like this:<\/p>\n<div style=\"aspect-ratio: 634 \/ 979;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2014\/05\/event-tag.jpg\" title=\"Event Tag for split test\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"979\" width=\"634\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2014\/05\/event-tag.jpg#ZgotmplZ\" alt=\"Event Tag for split test\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>As you can see, I\u2019m using the cookie value (\u201cclickDollars\u201d or \u201cclickWhatever\u201d) to annotate the event and the Custom Dimension! What a nice way of saving time and resources. So when someone clicks on the default variation, for example, the Event Tag will send something like this to GA servers:<\/p>\n<p><strong>Event Category<\/strong>: Call-to-action<br \/><strong>Event Action<\/strong>: clickDollars<br \/><strong>Event Label<\/strong>: \/call-to-action-page\/subscribe\/<br \/><strong>Dimension 1<\/strong>: clickDollars<\/p>\n<p>Remember to change the index number of the dimension to match the CD you created in the previous chapter!<\/p>\n<p>The firing rule I\u2019m using is simply:<\/p>\n<p><strong>{{event}} equals gtm.linkClick<\/strong><br \/><strong>{{element id}} equals call-to-action-link<\/strong><\/p>\n<p>This rule will thus only fire when a click occurs on an element with ID \u201ccall-to-action-link\u201d. Conveniently, this just happens to be my control element.<\/p>\n<h2 id=\"conclusions\">Conclusions<\/h2>\n<p>Well here it is. A simple split test done solely with GTM and some JavaScript magic. Now let me reiterate: this is hardly the best way to do split testing (we\u2019re still waiting for Content Experiments to make their way to GTM + Universal Analytics..) but it does showcase the power and might of a tag management system. I am, after all, <em>directly manipulating<\/em> an on-page element without touching server-side or front-end code! That\u2019s amazing\u2026and scary.<\/p>\n<p>Before you start fiddling with your DOM (wow, that sounded dirty), make sure you know just what you\u2019re doing and to which element. This is crucial, because you don\u2019t want to accidentally set off a full-scale website redesign without actually, you know, intending to.<\/p>\n<p>Note also that because you\u2019re changing the element in an asynchronously loading tag, it\u2019s more than possible that the user will see the control variant before the script overwrites it with the test variant. This isn\u2019t a good thing, as if the control group realizes they\u2019re participating in an experiment, it will hurt the reliability of the results.<\/p>\n<p>There are a couple of nice things to snag from this to your other scripts. Make use of the set-cookie function I wrote in the Custom HTML tag. It\u2019s a versatile solution, and I\u2019ve actually <a href=\"https:\/\/www.simoahava.com\/analytics\/universal-analytics-fire-script-just-per-session\/\">used it before as well<\/a>. The random number sampling is simply genius, and I love how easy it is to operate!<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Over the last couple of posts I\u2019ve mainly been doing proof-of-concept (POC) tests with Google Tag Manager. The great thing about a POC is that you don\u2019t really need to have any viable results or insight-driving technological innovations. The point is to showcase some feature of the platform on which the experiment was conducted. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":169277,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[1531,14495,2961,1891,1791,13597],"dealstore":[],"offerexpiration":[],"class_list":["post-169276","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-google","tag-manager","tag-simple","tag-split","tag-tag","tag-test"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Simple Split Test With Google Tag Manager - 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=169276\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Split Test With Google Tag Manager - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"Over the last couple of posts I\u2019ve mainly been doing proof-of-concept (POC) tests with Google Tag Manager. The great thing about a POC is that you don\u2019t really need to have any viable results or insight-driving technological innovations. The point is to showcase some feature of the platform on which the experiment was conducted. In [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=169276\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-03T14:59:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"251\" \/>\n\t<meta property=\"og:image:height\" content=\"44\" \/>\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=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=169276#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=169276\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Simple Split Test With Google Tag Manager\",\"datePublished\":\"2025-04-03T14:59:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=169276\"},\"wordCount\":1717,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=169276#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg\",\"keywords\":[\"Google\",\"Manager\",\"Simple\",\"Split\",\"TAG\",\"Test\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=169276#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=169276\",\"url\":\"https:\/\/fivemor.com\/?p=169276\",\"name\":\"Simple Split Test With Google Tag Manager - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=169276#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=169276#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg\",\"datePublished\":\"2025-04-03T14:59:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=169276#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=169276\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=169276#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg\",\"width\":251,\"height\":44},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=169276#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simple Split Test With Google Tag Manager\"}]},{\"@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":"Simple Split Test With Google Tag Manager - 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=169276","og_locale":"en_US","og_type":"article","og_title":"Simple Split Test With Google Tag Manager - Som2ny Network","og_description":"Over the last couple of posts I\u2019ve mainly been doing proof-of-concept (POC) tests with Google Tag Manager. The great thing about a POC is that you don\u2019t really need to have any viable results or insight-driving technological innovations. The point is to showcase some feature of the platform on which the experiment was conducted. In [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=169276","og_site_name":"Som2ny Network","article_published_time":"2025-04-03T14:59:43+00:00","og_image":[{"width":251,"height":44,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=169276#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=169276"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Simple Split Test With Google Tag Manager","datePublished":"2025-04-03T14:59:43+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=169276"},"wordCount":1717,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=169276#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg","keywords":["Google","Manager","Simple","Split","TAG","Test"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=169276#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=169276","url":"https:\/\/fivemor.com\/?p=169276","name":"Simple Split Test With Google Tag Manager - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=169276#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=169276#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg","datePublished":"2025-04-03T14:59:43+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=169276#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=169276"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=169276#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/04\/click-here-dollars.jpg","width":251,"height":44},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=169276#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Simple Split Test With Google Tag Manager"}]},{"@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\/169276","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=169276"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/169276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/169277"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169276"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=169276"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=169276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}