{"id":131412,"date":"2025-03-13T20:02:01","date_gmt":"2025-03-13T20:02:01","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/simple-tracker-duplication-for-universal-analytics\/"},"modified":"2025-03-13T20:02:01","modified_gmt":"2025-03-13T20:02:01","slug":"simple-tracker-duplication-for-universal-analytics","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=131412","title":{"rendered":"Simple Tracker Duplication For Universal Analytics"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>First of all, I\u2019m sorry about the title. I should really stop throwing the word \u201csimple\u201d around, since people always tell me that the stuff I claim to be easy and straightforward is rarely so. But since this is my blog, I reserve the right to use whatever stupid and misleading terminology I want. I maintain that what follows IS quite simple, especially when considering the amount of complexity it reduces in your <a href=\"https:\/\/analytics.google.com\/\">Universal Analytics<\/a> setup.<\/p>\n<p>Next, I want to direct your gaze to my latest Keynote \/ PowerPoint creation:<\/p>\n<div style=\"aspect-ratio: 1270 \/ 872;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2016\/05\/duplicator.jpg\" title=\"Hit duplicator\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"872\" width=\"1270\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2016\/05\/duplicator.jpg#ZgotmplZ\" alt=\"Hit duplicator\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>This piece of art is called \u201c\u2026while waiting for the cosmos\u201d. Note the enigmatic ellipsis in the beginning, the lack of capitalization, and the fact that the title has nothing to do with the image. Yes, friend. This is post-post-modernism at its best!<\/p>\n<p>So, I guess my amazing art kind of gave away what I want to show to you in this article. In short, it\u2019s a simple little plugin I\u2019ve been using in projects I work on, which duplicates all hits sent to a Google Analytics property. These duplicated hits are sent to <em>another<\/em> Google Analytics property, whose property ID you specify when initiating the plugin.<\/p>\n<p>This tutorial uses a <a href=\"https:\/\/www.simoahava.com\/analytics\/universal-analytics-plugins-explained\/\">Universal Analytics plugin<\/a> (d\u2019oh), which, in turn, utilizies the <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/tasks\">Tasks API<\/a>.<\/p>\n<p>Before I proceed, I want to direct you to <a href=\"https:\/\/www.thyngster.com\/universal-analytics-plugin-dual-tracking\/\">David Vallejo\u2019s blog<\/a>, where he and a bunch of other people are working together on an <a href=\"https:\/\/github.com\/thyngster\/universal-analytics-dual-tracking-plugin\">open-source project<\/a> which does similar stuff, but on a WAY more configurable level. The plugin I\u2019m about to walk you through will simply make an <em>exact<\/em> duplicate of the hit you sent, without letting you modify the payload one bit.<\/p>\n<p>Why, you may ask? Well, a surprisingly large number of projects I work with have a need for a \u201crollup\u201d property, which collects data from all sites in the organization. The data sent to the rollup often mirrors whatever is collected in the local sites. It\u2019s quite a chore to duplicate <code>send<\/code> commands across all trackers, so if the project is fine with simple duplication, I use this plugin.<\/p>\n<p><strong>CAVEAT<\/strong>: This will <strong>best<\/strong> work with <strong>named trackers<\/strong>. Thus <a href=\"https:\/\/tagmanager.google.com\/\">Google Tag Manager<\/a> setting this up in Google Tag Manager is difficult, as you\u2019ll have to mess with the <a href=\"https:\/\/www.simoahava.com\/gtm-tips\/be-careful-with-the-tracker-name-setting\/\">Tracker name<\/a> field. If you\u2019re confident with your GTM implementation skills, feel free to do whatever you wish, of course. Nevertheless, in its current state, the plugin caters best to an on-page Universal Analytics implementation.<\/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=\"modifying-the-tracking-code\">Modifying the tracking code<\/h2>\n<p>For this to work, you will need to make a small change to your Universal Analytics tracking code. Let\u2019s say the code looks like this now:<\/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>(i,s,o,g,r,a,m){i[<span style=\"color:#a50\">'GoogleAnalyticsObject'<\/span>]=r;i[r]=i[r]||<span style=\"color:#00a\">function<\/span>(){\n  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=<span style=\"color:#099\">1<\/span>*<span style=\"color:#00a\">new<\/span> <span style=\"color:#0aa\">Date<\/span>();a=s.createElement(o),\n  m=s.getElementsByTagName(o)[<span style=\"color:#099\">0<\/span>];a.async=<span style=\"color:#099\">1<\/span>;a.src=g;m.parentNode.insertBefore(a,m)\n  })(<span style=\"color:#0aa\">window<\/span>,<span style=\"color:#0aa\">document<\/span>,<span style=\"color:#a50\">'script'<\/span>,<span style=\"color:#a50\">'https:\/\/www.google-analytics.com\/analytics.js'<\/span>,<span style=\"color:#a50\">'ga'<\/span>);\n\n  ga(<span style=\"color:#a50\">'create'<\/span>, <span style=\"color:#a50\">'UA-12345-1'<\/span>, <span style=\"color:#a50\">'auto'<\/span>);\n  ga(<span style=\"color:#a50\">'send'<\/span>, <span style=\"color:#a50\">'pageview'<\/span>);\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>You\u2019ll need to add the following modification:<\/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>(i,s,o,g,r,a,m){i[<span style=\"color:#a50\">'GoogleAnalyticsObject'<\/span>]=r;i[r]=i[r]||<span style=\"color:#00a\">function<\/span>(){\n  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=<span style=\"color:#099\">1<\/span>*<span style=\"color:#00a\">new<\/span> <span style=\"color:#0aa\">Date<\/span>();a=s.createElement(o),\n  m=s.getElementsByTagName(o)[<span style=\"color:#099\">0<\/span>];a.async=<span style=\"color:#099\">1<\/span>;a.src=g;m.parentNode.insertBefore(a,m)\n  })(<span style=\"color:#0aa\">window<\/span>,<span style=\"color:#0aa\">document<\/span>,<span style=\"color:#a50\">'script'<\/span>,<span style=\"color:#a50\">'https:\/\/www.google-analytics.com\/analytics.js'<\/span>,<span style=\"color:#a50\">'ga'<\/span>);\n\n  ga(<span style=\"color:#a50\">'create'<\/span>, <span style=\"color:#a50\">'UA-12345-1'<\/span>, <span style=\"color:#a50\">'auto'<\/span>);\n\n  <span style=\"color:#aaa;font-style:italic\">\/\/ ADD THIS LINE:\n<\/span><span style=\"color:#aaa;font-style:italic\"\/>  ga(<span style=\"color:#a50\">'require'<\/span>, <span style=\"color:#a50\">'simolatorDuplicator'<\/span>, {<span style=\"color:#a50\">'newId'<\/span> : <span style=\"color:#a50\">'UA-12345-2'<\/span>});\n\n  ga(<span style=\"color:#a50\">'send'<\/span>, <span style=\"color:#a50\">'pageview'<\/span>);\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>There\u2019s a single addition: <code>ga('require', 'simolatorDuplicator', {'newId' : 'UA-12345-2'});<\/code>. This line invokes a plugin called <code>simolatorDuplicator<\/code> (I know! The awesomest plugin name in the UNIVERSE!), after which you pass an <em>object<\/em> with a single key-value pair: <code>{newId : newTrackerId}<\/code>. In place of <code>newTrackerId<\/code>, you place a String with the Google Analytics property ID to which you want to duplicate all the hits.<\/p>\n<h2 id=\"the-plugin-itself\">The plugin itself<\/h2>\n<p>There are two quick and easy (sorry about those words again) ways to load the plugin. Either host it in its own JavaScript file which you then load with a <code><script\/><\/code> loader, or just run the code in the page template itself.<\/p>\n<p>What\u2019s important is that the <strong>plugin code needs to be loaded AFTER the tracking code<\/strong>.<br \/>\nThe code looks like this:<\/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\">(<span style=\"color:#00a\">function<\/span>() {\n  <span style=\"color:#00a\">var<\/span> ga = <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'GoogleAnalyticsObject'<\/span>]];\n  <span style=\"color:#00a\">var<\/span> GADuplicate = <span style=\"color:#00a\">function<\/span>(tracker, propertyId) {\n    <span style=\"color:#00a\">var<\/span> o = tracker.get(<span style=\"color:#a50\">'sendHitTask'<\/span>);\n    <span style=\"color:#00a\">var<\/span> temp;\n    tracker.set(<span style=\"color:#a50\">'sendHitTask'<\/span>, <span style=\"color:#00a\">function<\/span>(model) {\n      o(model);\n      temp = model.get(<span style=\"color:#a50\">'hitPayload'<\/span>).replace(<span style=\"color:#00a\">new<\/span> <span style=\"color:#0aa\">RegExp<\/span>(model.get(<span style=\"color:#a50\">'trackingId'<\/span>), <span style=\"color:#a50\">'g'<\/span>), propertyId.newId);\n      <span style=\"color:#00a\">if<\/span> (temp) {\n        model.set(<span style=\"color:#a50\">'hitPayload'<\/span>, temp, <span style=\"color:#00a\">true<\/span>);\n        o(model);\n      }\n    });\n  };\n  ga(<span style=\"color:#a50\">'provide'<\/span>, <span style=\"color:#a50\">'simolatorDuplicator'<\/span>, GADuplicate);\n})();\n<\/code><\/pre>\n<\/div>\n<p>So either write this in a file named <strong>something.js<\/strong> (feel free to replace <strong>something<\/strong> with something else), or just add the code in its own <code><script\/><\/code> block after the tracking snippet.<\/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\"><span style=\"color:#aaa;font-style:italic\"><!-- METHOD 1 --><\/span>\nscript&gt;\n  <span style=\"color:#aaa;font-style:italic\">\/\/ GA Tracking code here\n<\/span><span style=\"color:#aaa;font-style:italic\"\/><span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;\nscript <span style=\"color:#1e90ff\">src<\/span>=<span style=\"color:#a50\">\"something.js\"<\/span> <span style=\"color:#1e90ff\">async<\/span>&gt;<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;\n\n<span style=\"color:#aaa;font-style:italic\"><!-- METHOD 2 --><\/span>\nscript&gt;\n  <span style=\"color:#aaa;font-style:italic\">\/\/ GA Tracking code here\n<\/span><span style=\"color:#aaa;font-style:italic\"\/><span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;\nscript&gt;\n(<span style=\"color:#00a\">function<\/span>() {\n  <span style=\"color:#00a\">var<\/span> ga = <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'GoogleAnalyticsObject'<\/span>]] || <span style=\"color:#00a\">function<\/span>() {};\n  <span style=\"color:#00a\">var<\/span> GADuplicate = <span style=\"color:#00a\">function<\/span>(tracker, config) {\n    <span style=\"color:#00a\">var<\/span> o = tracker.get(<span style=\"color:#a50\">'sendHitTask'<\/span>);\n    <span style=\"color:#00a\">var<\/span> temp;\n    tracker.set(<span style=\"color:#a50\">'sendHitTask'<\/span>, <span style=\"color:#00a\">function<\/span>(model) {\n      o(model);\n      temp = model.get(<span style=\"color:#a50\">'hitPayload'<\/span>).replace(<span style=\"color:#00a\">new<\/span> <span style=\"color:#0aa\">RegExp<\/span>(model.get(<span style=\"color:#a50\">'trackingId'<\/span>), <span style=\"color:#a50\">'g'<\/span>), config.newId);\n      <span style=\"color:#00a\">if<\/span> (temp) {\n        model.set(<span style=\"color:#a50\">'hitPayload'<\/span>, temp, <span style=\"color:#00a\">true<\/span>);\n        o(model);\n      }\n    });\n  };\n  ga(<span style=\"color:#a50\">'provide'<\/span>, <span style=\"color:#a50\">'simolatorDuplicator'<\/span>, GADuplicate);\n})();\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>Both are equally fine, though to keep things nice and tidy I do recommend the first method.<\/p>\n<p>Let\u2019s take a quick stroll through the code.<\/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\">(<span style=\"color:#00a\">function<\/span>() {\n  <span style=\"color:#00a\">var<\/span> ga = <span style=\"color:#0aa\">window<\/span>[<span style=\"color:#0aa\">window<\/span>[<span style=\"color:#a50\">'GoogleAnalyticsObject'<\/span>]] || <span style=\"color:#00a\">function<\/span>() {};\n  ...\n  ga(<span style=\"color:#a50\">'provide'<\/span>, <span style=\"color:#a50\">'simolatorDuplicator'<\/span>, GADuplicate);\n})();\n<\/code><\/pre>\n<\/div>\n<p>These lines wrap the plugin code in an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Immediately-invoked_function_expression\">immediately invoked function expression<\/a>, which I use to protect the global namespace. No, you didn\u2019t need to understand any of that.<\/p>\n<p>The next line establishes the <code>ga()<\/code> interface locally, by scoping it to the global Google Analytics Object. This is so that the plugin still works even if you\u2019ve renamed the global GA interface from <code>ga<\/code> to something else.<\/p>\n<p>After the plugin code (represented by the \u201c\u2026&#8221;) we make the plugin available to the <code>ga<\/code> interface. This is a very important line, as it is the counterpart to the <code>ga('require', 'simolatorDuplicator'...);<\/code> command used in the tracking code. If you didn\u2019t have this line, or if you had a typo in the plugin name, your GA code would not work at all! So remember to test, test, TEST.<\/p>\n<p>Next, the plugin constructor itself:<\/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\">  <span style=\"color:#00a\">var<\/span> GADuplicate = <span style=\"color:#00a\">function<\/span>(tracker, config) {\n    <span style=\"color:#00a\">var<\/span> o = tracker.get(<span style=\"color:#a50\">'sendHitTask'<\/span>);\n    <span style=\"color:#00a\">var<\/span> temp;\n    tracker.set(<span style=\"color:#a50\">'sendHitTask'<\/span>, <span style=\"color:#00a\">function<\/span>(model) {\n      o(model);\n      temp = model.get(<span style=\"color:#a50\">'hitPayload'<\/span>).replace(<span style=\"color:#00a\">new<\/span> <span style=\"color:#0aa\">RegExp<\/span>(model.get(<span style=\"color:#a50\">'trackingId'<\/span>), <span style=\"color:#a50\">'g'<\/span>), config.newId);\n      <span style=\"color:#00a\">if<\/span> (temp) {\n        model.set(<span style=\"color:#a50\">'hitPayload'<\/span>, temp, <span style=\"color:#00a\">true<\/span>);\n        o(model);\n      }\n    });\n  };\n<\/code><\/pre>\n<\/div>\n<p>Lots of things going on here.<\/p>\n<p>First, the function expression establishes a new function called <code>GADuplicate<\/code>, which takes two parameters: <code>tracker<\/code> and <code>config<\/code>. The <code>tracker<\/code> parameter is passed automatically by the plugin logic, and it contains a reference to the Universal Analytics tracker object which invoked the plugin. The <code>config<\/code> object is passed as a parameter in the modified tracking code. It\u2019s the <code>{'newId' : 'UA-12345-2'}<\/code> which we covered earlier.<\/p>\n<p>Next, we make a copy of the original <code>sendHitTask<\/code>. This little method is actually the entire dispatch logic of analytics.js, so we\u2019ll need it to send our data to Google Analytics.<\/p>\n<p>We need it especially because on the very next line after the variable declarations we <em>overwrite<\/em> the <code>sendHitTask<\/code> of the tracker with a new one!<\/p>\n<p>First, the <em>original<\/em> <code>sendHitTask<\/code>, temporarily copied to the method <code>o()<\/code>, is used to send the regular hit to Universal Analytics. This is really important, as without this you\u2019d just be sending your duplicate hit!<\/p>\n<p>Then, we take the <code>hitPayload<\/code> you just sent to GA, and we replace all instances of the current property ID with the new property ID that you configured in the tracking code! This is the main logic in this plugin. We take the payload, we send it first regularly, and then we modify it and send the modified version. By using <code>model.set('hitPayload', temp, true);<\/code> we\u2019re rewriting the payload, which is then submitted with a new invocation of the <code>o()<\/code> method.<\/p>\n<p>I maintain that it\u2019s really quite simple when you think about it, but naturally it does require some understanding of how the APIs work. So feel free to plunge into <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/tasks\">the documentation<\/a>.<\/p>\n<p>And that\u2019s it! That\u2019s the code, the setup, and the implementation. Remember, you will need to modify the tracking code accordingly on all pages of your site where you want to use this plugin. You can use it with named trackers, too; just modify the plugin call to:<\/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\">'myNamedTracker:require'<\/span>, <span style=\"color:#a50\">'simolatorDuplicator'<\/span>, {<span style=\"color:#a50\">'newId'<\/span> : <span style=\"color:#a50\">'UA-12345-2'<\/span>});\n<\/code><\/pre>\n<\/div>\n<p>And <em>yes<\/em>, you can rename the plugin to something else than <code>simolatorDuplicator<\/code>, though I will love you slightly less if you do so.<\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>Please remember, this is an <em>exact<\/em> hit duplication method. If you want to modify the payload, you\u2019ll need to add some additional logic to the code, and I really recommend you check out the link to David Vallejo\u2019s blog in the introductory chapter of this article.<\/p>\n<p>Let me know if you\u2019re having problems with this, or if you have suggestions! Please do test this thoroughly before implementing it. You are messing with code that can potentially cripple your Google Analytics implementation.<\/p>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>First of all, I\u2019m sorry about the title. I should really stop throwing the word \u201csimple\u201d around, since people always tell me that the stuff I claim to be easy and straightforward is rarely so. But since this is my blog, I reserve the right to use whatever stupid and misleading terminology I want. I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":131413,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[12765,42920,2961,1191,1260],"dealstore":[],"offerexpiration":[],"class_list":["post-131412","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-analytics","tag-duplication","tag-simple","tag-tracker","tag-universal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Simple Tracker Duplication For Universal Analytics - 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=131412\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Tracker Duplication For Universal Analytics - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"First of all, I\u2019m sorry about the title. I should really stop throwing the word \u201csimple\u201d around, since people always tell me that the stuff I claim to be easy and straightforward is rarely so. But since this is my blog, I reserve the right to use whatever stupid and misleading terminology I want. I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=131412\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-13T20:02:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1270\" \/>\n\t<meta property=\"og:image:height\" content=\"872\" \/>\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=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=131412#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=131412\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Simple Tracker Duplication For Universal Analytics\",\"datePublished\":\"2025-03-13T20:02:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=131412\"},\"wordCount\":1216,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=131412#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg\",\"keywords\":[\"Analytics\",\"duplication\",\"Simple\",\"Tracker\",\"Universal\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=131412#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=131412\",\"url\":\"https:\/\/fivemor.com\/?p=131412\",\"name\":\"Simple Tracker Duplication For Universal Analytics - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=131412#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=131412#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg\",\"datePublished\":\"2025-03-13T20:02:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=131412#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=131412\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=131412#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg\",\"width\":1270,\"height\":872},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=131412#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simple Tracker Duplication For Universal Analytics\"}]},{\"@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 Tracker Duplication For Universal Analytics - 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=131412","og_locale":"en_US","og_type":"article","og_title":"Simple Tracker Duplication For Universal Analytics - Som2ny Network","og_description":"First of all, I\u2019m sorry about the title. I should really stop throwing the word \u201csimple\u201d around, since people always tell me that the stuff I claim to be easy and straightforward is rarely so. But since this is my blog, I reserve the right to use whatever stupid and misleading terminology I want. I [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=131412","og_site_name":"Som2ny Network","article_published_time":"2025-03-13T20:02:01+00:00","og_image":[{"width":1270,"height":872,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=131412#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=131412"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Simple Tracker Duplication For Universal Analytics","datePublished":"2025-03-13T20:02:01+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=131412"},"wordCount":1216,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=131412#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg","keywords":["Analytics","duplication","Simple","Tracker","Universal"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=131412#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=131412","url":"https:\/\/fivemor.com\/?p=131412","name":"Simple Tracker Duplication For Universal Analytics - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=131412#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=131412#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg","datePublished":"2025-03-13T20:02:01+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=131412#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=131412"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=131412#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/duplicator.jpg","width":1270,"height":872},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=131412#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Simple Tracker Duplication For Universal Analytics"}]},{"@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\/131412","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=131412"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/131412\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/131413"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131412"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=131412"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=131412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}