{"id":148261,"date":"2025-03-21T19:12:14","date_gmt":"2025-03-21T19:12:14","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/access-the-tracker-object-in-your-page-view-tag\/"},"modified":"2025-03-21T19:12:14","modified_gmt":"2025-03-21T19:12:14","slug":"access-the-tracker-object-in-your-page-view-tag","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=148261","title":{"rendered":"Access The Tracker Object In Your Page View Tag"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>If you read my <a href=\"https:\/\/www.simoahava.com\/analytics\/improve-data-collection-with-four-custom-dimensions\/\">previous post<\/a> on fetching the <em>Client ID<\/em> from the Universal Analytics tracker object with <a href=\"https:\/\/tagmanager.google.com\">Google Tag Manager<\/a>, you might have agreed with me that it sucks you can\u2019t access the tracker object interface in real time using Google Tag Manager. This is because all of the <code>set<\/code> commands you add to a Universal Analytics tag template take place before the <strong>analytics.js<\/strong> is loaded and the tracker object is properly created.<\/p>\n<p>The other issue with the tag template is that there\u2019s no set way to access the tracker object anyway. I mean, you can use the <code>set<\/code> command, sure, but you can\u2019t really use <code>get<\/code> or, for that matter, make use of any other interface methods you\u2019d want to such as plugins (more on them in <a href=\"https:\/\/www.simoahava.com\/analytics\/universal-analytics-plugins-explained\/\">this post<\/a>).<\/p>\n<div style=\"aspect-ratio: 798 \/ 379;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/04\/setup-ua-tracker.jpg\" title=\"Setup UA Tracker\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"379\" width=\"798\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/04\/setup-ua-tracker.jpg#ZgotmplZ\" alt=\"Setup UA Tracker\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>So, in this post I want to show a method you can use to actually mine the tracker object for whatever information you want, and at the same time ensure that the data is usable by the time your all-important Page View Tag fires. This is a notable improvement to the method I talked about in the previous post, which was to basically use a Window Loaded Trigger to fire a non-interactive Event Tag with the Client ID.<\/p>\n<p>This article was inspired and intellectually fuelled by the amazing <a href=\"http:\/\/www.mardiros.net\/\">Carmen Mardiros<\/a> (follow her: <a href=\"https:\/\/twitter.com\/carmenmardiros\/\">@carmenmardiros<\/a>).<\/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-method\">The method<\/h2>\n<p>You\u2019ll have to use Custom HTML for this. I know, I know! It\u2019s a huge step backwards from the awesome, templated world you\u2019re used to. Using a Custom HTML Tag is necessary precisely for the reasons I listed in the beginning. Until the Tag Template supports adding arbitrary JavaScript code between the <code>create<\/code> and <code>send<\/code> commands in the template, you\u2019ll have to use a workaround.<\/p>\n<p>The upside is that all you need the Custom HTML code for is to setup the tracker object, and then push an initialization event in to <code>dataLayer<\/code>, which will subsequently fire your actual Page View Tag. So, you\u2019ll end up with one extra Tag and a very slight delay to your Page View Tag, but the delay is so minimal it doesn\u2019t really make a difference.<\/p>\n<p>Here\u2019s what will take place:<\/p>\n<ol>\n<li>\n<p>Tracker object for your UA-code is created<\/p>\n<\/li>\n<li>\n<p>The Client ID is extracted from the tracker object as soon as it\u2019s available<\/p>\n<\/li>\n<li>\n<p>When the Client ID has been extracted, it\u2019s pushed into <code>dataLayer<\/code> together with the initialization event<\/p>\n<\/li>\n<li>\n<p>This event fires your Page View Tag, and you can use a normal Data Layer Variable to retrieve the Client ID<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"the-custom-html-tag\">The Custom HTML Tag<\/h2>\n<p>So, start by creating a new <strong>Custom HTML Tag<\/strong>, and make sure it fires on the earliest possible Trigger &#8211; usually the All Pages Trigger.<\/p>\n<p>As for the code within, you\u2019ll get that from your Google Analytics Admin, under <strong>Property Settings<\/strong> -&gt; <strong>Tracking Info<\/strong> -&gt; <strong>Tracking Code<\/strong>.<\/p>\n<div style=\"aspect-ratio: 798 \/ 360;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/04\/tracking-code.jpg\" title=\"Tracking Code\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"360\" width=\"798\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/04\/tracking-code.jpg#ZgotmplZ\" alt=\"Tracking Code\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Copy-paste that into your Custom HTML Tag. Now, proceed to remove the line which says <code>ga('send', 'pageview');<\/code>. We\u2019re removing this because we still want to use the actual tag template for sending the pageview hit.<\/p>\n<p>Now, if there are any modifications you need to do, such as adding additional trackers, you can set them up here. This guide has been written with a fairly basic setup in mind.<\/p>\n<p><strong>NOTE!<\/strong> Any modifications to the tracker, such as <code>allowLinker : true<\/code>, custom cookie settings, and so forth need to be setup on this Custom HTML tracker, so that the Client ID you will be fetching from this custom tracker matches the one used by your main Page View Tag.<\/p>\n<p>The next part is important. The <strong>analytics.js<\/strong> library is loaded <em>asynchronously<\/em>, which means that you don\u2019t actually know when the tracker object has been created and its <code>get<\/code> method can be invoked. So, the library lets you pass a callback function to the <code>ga<\/code> object, which will be executed once the library has loaded and the tracker has been created. As I mention in the beginning: <strong>this feature is not available in the default tag template<\/strong>, which is why we need this workaround.<\/p>\n<p>To add the callback, you add the following rows of code after the <code>ga('create', ...);<\/code> expression:<\/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:#00a\">function<\/span>(tracker) {\n  ...any methods which need the tracker object\n});\n<\/code><\/pre>\n<\/div>\n<p>Any code within the callback function will be executed only once the library has been loaded, the tracker has been created, and the tracker object responds to interface methods. In this callback function, we\u2019ll first fetch the Client ID, and then push it into <code>dataLayer<\/code> together with an initialization event:<\/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:#00a\">function<\/span>(tracker) {\n  <span style=\"color:#0aa\">window<\/span>.dataLayer.push({\n    <span style=\"color:#a50\">'event'<\/span> : <span style=\"color:#a50\">'trackerReady'<\/span>,\n    <span style=\"color:#a50\">'cid'<\/span> : tracker.get(<span style=\"color:#a50\">'clientId'<\/span>)\n  });\n});\n<\/code><\/pre>\n<\/div>\n<p>As you can see, I\u2019m invoking the <code>get<\/code> command of the tracker object, and asking to retrieve the Client ID from the tracker. This wouldn\u2019t be possible without the <code>ga(function(tracker) {})<\/code> call.<\/p>\n<p>My personal, finished example for the Custom HTML Tag looks like this. Remember, any customizations you need for the tracker object need to go here as well, so be sure to read up on how to set up <a href=\"https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/advanced\">advanced configurations<\/a> for your Universal Analytics tracking 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-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\">'\/\/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\">'{{GA Tracking Code}}'<\/span>, <span style=\"color:#a50\">'auto'<\/span>, {<span style=\"color:#a50\">'allowLinker'<\/span> : <span style=\"color:#a50\">'true'<\/span>});  \n  ga(<span style=\"color:#a50\">'require'<\/span>, <span style=\"color:#a50\">'simoPlugin'<\/span>); <span style=\"color:#aaa;font-style:italic\">\/\/ Any plugins you want to load would go here  \n<\/span><span style=\"color:#aaa;font-style:italic\"\/>  ga(<span style=\"color:#00a\">function<\/span>(tracker) {\n      <span style=\"color:#0aa\">window<\/span>.dataLayer.push({\n          <span style=\"color:#a50\">'event'<\/span> : <span style=\"color:#a50\">'trackerReady'<\/span>,\n          <span style=\"color:#a50\">'cid'<\/span> : tracker.get(<span style=\"color:#a50\">'clientId'<\/span>)\n      });\n  });\n<span style=\"color:#1e90ff;font-weight:bold\">script<\/span>&gt;<\/code><\/pre>\n<\/div>\n<p>Just a few comments on the customizations:<\/p>\n<ul>\n<li>\n<p><strong>{{GA Tracking Code}}<\/strong> is a <a href=\"https:\/\/www.simoahava.com\/analytics\/variable-guide-google-tag-manager\/\">Lookup Table Variable<\/a> which returns the property ID depending on a few conditions.<\/p>\n<\/li>\n<li>\n<p><code>ga('require', 'simoPlugin');<\/code> is where you would load any plugins you want to use with your Tags. This is missing from the tag templates, and I really hope we\u2019ll get the chance to load plugins soon.<\/p>\n<\/li>\n<\/ul>\n<p>That\u2019s it for the Custom HTML Tag. The rest is very simple stuff.<\/p>\n<h2 id=\"data-layer-variable-and-custom-event-trigger\">Data Layer Variable and Custom Event Trigger<\/h2>\n<p>The two other things you\u2019ll need are a <strong>Data Layer Variable<\/strong> for the Client ID, and a <strong>Custom Event Trigger<\/strong> for the <code>trackerReady<\/code> event.<\/p>\n<div style=\"aspect-ratio: 444 \/ 468;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/04\/dlv-cid.jpg\" title=\"Data Layer Variable - cid\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"468\" width=\"444\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/04\/dlv-cid.jpg#ZgotmplZ\" alt=\"Data Layer Variable - cid\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Nothing complicated about this. The Trigger is really simple as well:<\/p>\n<div style=\"aspect-ratio: 542 \/ 416;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/04\/event-trackerready.jpg\" title=\"Event - trackerReady\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"416\" width=\"542\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/04\/event-trackerready.jpg#ZgotmplZ\" alt=\"Event - trackerReady\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<p>Once you have these two setup, all you need to do is modify your existing Page View Tag to accommodate these changes.<\/p>\n<p>My Tag, for example, now has the Client ID as a Custom Dimension, and it\u2019s set to fire with the <strong>Event &#8211; trackerReady<\/strong> Trigger we just created.<\/p>\n<div style=\"aspect-ratio: 958 \/ 507;\" class=\"figure nocaption\">\n<p>    <a href=\"https:\/\/www.simoahava.com\/images\/2015\/04\/pageview-tag.jpg\" title=\"PageView Tag changes\"><\/p>\n<p>    <img decoding=\"async\" class=\"fig-img\" height=\"507\" width=\"958\" loading=\"lazy\" src=\"https:\/\/www.simoahava.com\/images\/2015\/04\/pageview-tag.jpg#ZgotmplZ\" alt=\"PageView Tag changes\"\/><\/p>\n<p>    <\/a><\/p>\n<\/div>\n<h2 id=\"summary\">Summary<\/h2>\n<p>This is one of those articles that I hope becomes obsolete soon. The current Universal Analytics tag templates do not let you run arbitrary JavaScript (e.g. load plugins) or access the tracker object after it has been created, but <em>before<\/em> the \u2018pageview\u2019 hit is sent.<\/p>\n<p>That\u2019s why you need this workaround. On the other hand, this isn\u2019t exactly a very complex thing to do, as you\u2019re only creating one additional Tag to set up the tracker and channel all the subsequent tags to not fire until the tracker object callback function has been executed.<\/p>\n<p>Time will tell when the Universal Analytics tag template supports these features. Personally, I hope soon. Google Tag Manager is already the <em>de facto<\/em> implementation mechanism for Universal Analytics, but if it doesn\u2019t support advanced configuration of the tracker object, larger organizations especially might be deterred from migrating until such features are supported out-of-the-box.<\/p>\n<\/p><\/div>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><br \/>\n<br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you read my previous post on fetching the Client ID from the Universal Analytics tracker object with Google Tag Manager, you might have agreed with me that it sucks you can\u2019t access the tracker object interface in real time using Google Tag Manager. This is because all of the set commands you add to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":148262,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[1846,8544,4347,1791,1191,10183],"dealstore":[],"offerexpiration":[],"class_list":["post-148261","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-access","tag-object","tag-page","tag-tag","tag-tracker","tag-view"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Access The Tracker Object In Your Page View Tag - 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=148261\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Access The Tracker Object In Your Page View Tag - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"If you read my previous post on fetching the Client ID from the Universal Analytics tracker object with Google Tag Manager, you might have agreed with me that it sucks you can\u2019t access the tracker object interface in real time using Google Tag Manager. This is because all of the set commands you add to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=148261\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-21T19:12:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"798\" \/>\n\t<meta property=\"og:image:height\" content=\"379\" \/>\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=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=148261#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=148261\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Access The Tracker Object In Your Page View Tag\",\"datePublished\":\"2025-03-21T19:12:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=148261\"},\"wordCount\":1171,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=148261#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg\",\"keywords\":[\"Access\",\"Object\",\"Page\",\"TAG\",\"Tracker\",\"View\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=148261#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=148261\",\"url\":\"https:\/\/fivemor.com\/?p=148261\",\"name\":\"Access The Tracker Object In Your Page View Tag - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=148261#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=148261#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg\",\"datePublished\":\"2025-03-21T19:12:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=148261#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=148261\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=148261#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg\",\"width\":798,\"height\":379},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=148261#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Access The Tracker Object In Your Page View Tag\"}]},{\"@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":"Access The Tracker Object In Your Page View Tag - 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=148261","og_locale":"en_US","og_type":"article","og_title":"Access The Tracker Object In Your Page View Tag - Som2ny Network","og_description":"If you read my previous post on fetching the Client ID from the Universal Analytics tracker object with Google Tag Manager, you might have agreed with me that it sucks you can\u2019t access the tracker object interface in real time using Google Tag Manager. This is because all of the set commands you add to [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=148261","og_site_name":"Som2ny Network","article_published_time":"2025-03-21T19:12:14+00:00","og_image":[{"width":798,"height":379,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=148261#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=148261"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Access The Tracker Object In Your Page View Tag","datePublished":"2025-03-21T19:12:14+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=148261"},"wordCount":1171,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=148261#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg","keywords":["Access","Object","Page","TAG","Tracker","View"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=148261#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=148261","url":"https:\/\/fivemor.com\/?p=148261","name":"Access The Tracker Object In Your Page View Tag - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=148261#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=148261#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg","datePublished":"2025-03-21T19:12:14+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=148261#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=148261"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=148261#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/03\/setup-ua-tracker.jpg","width":798,"height":379},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=148261#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Access The Tracker Object In Your Page View Tag"}]},{"@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\/148261","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=148261"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/148261\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/148262"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148261"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=148261"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=148261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}