<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tag Manager Archives - Vu Thanh Tung</title>
	<atom:link href="https://vutung.com/category/tag-manager/feed/" rel="self" type="application/rss+xml" />
	<link>https://vutung.com/category/tag-manager/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Oct 2022 15:01:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.10</generator>

<image>
	<url>https://vutung.com/wp-content/uploads/2020/10/cropped-Untitled-e1602229264330-32x32.png</url>
	<title>Tag Manager Archives - Vu Thanh Tung</title>
	<link>https://vutung.com/category/tag-manager/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>The difference between All Element and Just Link</title>
		<link>https://vutung.com/2020/10/09/the-difference-between-all-element-and-just-link/</link>
					<comments>https://vutung.com/2020/10/09/the-difference-between-all-element-and-just-link/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 09 Oct 2020 12:01:00 +0000</pubDate>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Tag Manager]]></category>
		<guid isPermaLink="false">https://vutung.com/?p=1977</guid>

					<description><![CDATA[<p>One of the most frequent questions I was asked is the difference between 2 types of click trigger: All elements and Just link. Basically, they are all click triggers, which...</p>
<p>The post <a rel="nofollow" href="https://vutung.com/2020/10/09/the-difference-between-all-element-and-just-link/">The difference between All Element and Just Link</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="has-normal-font-size">One of the most frequent questions I was asked is the difference between 2 types of click trigger: All elements and Just link.</h1>



<figure class="wp-block-image size-large"><img loading="lazy" width="768" height="762" src="https://vutung.com/wp-content/uploads/2020/10/Untitled-1.png" alt="All element vs just link click trigger" class="wp-image-1980" srcset="https://vutung.com/wp-content/uploads/2020/10/Untitled-1.png 768w, https://vutung.com/wp-content/uploads/2020/10/Untitled-1-300x298.png 300w, https://vutung.com/wp-content/uploads/2020/10/Untitled-1-150x150.png 150w, https://vutung.com/wp-content/uploads/2020/10/Untitled-1-100x100.png 100w, https://vutung.com/wp-content/uploads/2020/10/Untitled-1-680x675.png 680w" sizes="(max-width: 768px) 100vw, 768px" /></figure>



<p>Basically, they are all click triggers, which means it is based on clicks to determine the tag is fired or not.</p>



<p>Just link is specifically used for &#8220;click on link&#8221;, and All elements is used for every click on website. Link click is any clicks on &lt;a href&#8230;&gt;, which could be a link to other sites, or may be click to call</p>



<p>2 examples that you will frequently met are:</p>



<ul><li>&lt;a href=&#8221;https://vutung.com/2020/10/09/the-difference-between-all-element-and-just-link/&#8221;&gt;Click here&lt;/a&gt;</li><li>&lt;a href=&#8221;tel:+84982129595&#8243;&gt;0982129595&lt;/a&gt;</li></ul>



<p>Every link click can trigger both All element and Just link, however, if it is a normal click (for example, click on submit button) then it will only trigger All elements click.</p>



<p>To determine which one you should choose, just think that is the click you want to be tracked, are link click or not.</p>



<p>Click here to read more about how to track <a href="https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/" data-type="URL" data-id="https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/" target="_blank" rel="noreferrer noopener">real time-on-page by Google Tag Manager</a></p>



<p></p>
<p>The post <a rel="nofollow" href="https://vutung.com/2020/10/09/the-difference-between-all-element-and-just-link/">The difference between All Element and Just Link</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://vutung.com/2020/10/09/the-difference-between-all-element-and-just-link/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use Timer in GTM to track real time on page (Google Tag Manager)</title>
		<link>https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/</link>
					<comments>https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/#comments</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 23 Aug 2019 06:18:52 +0000</pubDate>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Tag Manager]]></category>
		<guid isPermaLink="false">https://vutung.com/?p=1894</guid>

					<description><![CDATA[<p>GA calculates time spent on a given page by taking the difference between the timestamp of that pageview and the timestamp of the subsequent hit. But if a pageview is the...</p>
<p>The post <a rel="nofollow" href="https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/">How to use Timer in GTM to track real time on page (Google Tag Manager)</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>GA calculates time spent on a given page by taking the difference between the timestamp of that pageview and the timestamp of the subsequent hit. But if a pageview is the last (or only) hit in the session, GA will assign it a time of zero.</p>
<p>For example: If a person entered the website, then spent around 20 minutes reading your page, and gather all the information he needed, then he exit the page. He  is an potential customer, but in Google Analytics, he is count as a bounce, and session duration is 0.</p>
<h1 style="text-align: center;">How to use Google Tag Manager to track user&#8217;s time on page</h1>
<p>Now, we can use Google Tag manager, timer trigger to fix that problem, by identify the real time-on-page for a particular page.</p>
<p>*** This trick should only be use in some specific pages, such as blog pages, or key pages, since it will send multiple hits to GA, and send much more events than normal.</p>
<p>See more: <a href="https://vutung.com/2019/08/23/send-client-id-to-google-analytics-to-track-every-single-visitor/">Track every user behaviors by sending client ID</a></p>
<h2>1, Send a hit after user spend 30 seconds on page.</h2>
<p>Create the Timer trigger as follows:</p>
<ol>
<li>Add a new trigger. Choose <strong>Timer</strong> as the event type.</li>
<li>Enter the desired timer interval in milliseconds, e.g. For a 30 seconds timer, enter 30000, and set the timer limit to 1 (only fire once per page)</li>
<li>At the conditions, you enter Page Url -&gt; contains -&gt; URL of the pages you want to track. Leave domain for all pages</li>
<li>This trigger fire on all timers</li>
</ol>
<p><img loading="lazy" class="alignnone wp-image-2082 size-large" src="https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger-1024x552.png" alt="Create-timer-trigger" width="900" height="485" srcset="https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger-1024x552.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger-300x162.png 300w, https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger-768x414.png 768w, https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger-1536x828.png 1536w, https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger-680x367.png 680w, https://vutung.com/wp-content/uploads/2019/08/Create-timer-trigger.png 1806w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Now, you create a universal analytics event, with category and label as you wish. This will not affect any reports. The correct set up should look like this</p>
<p><img loading="lazy" class="aligncenter wp-image-1997 size-large" src="https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-10-134720-1024x466.png" alt="tag-manager-time-on-page" width="900" height="410" srcset="https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-10-134720-1024x466.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-10-134720-300x137.png 300w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-10-134720-768x350.png 768w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-10-134720-680x310.png 680w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-10-134720.png 1462w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p><img loading="lazy" class="alignnone wp-image-2084 size-large" src="https://vutung.com/wp-content/uploads/2021/03/timer-tag-1024x511.png" alt="" width="900" height="449" srcset="https://vutung.com/wp-content/uploads/2021/03/timer-tag-1024x511.png 1024w, https://vutung.com/wp-content/uploads/2021/03/timer-tag-300x150.png 300w, https://vutung.com/wp-content/uploads/2021/03/timer-tag-768x383.png 768w, https://vutung.com/wp-content/uploads/2021/03/timer-tag-680x339.png 680w, https://vutung.com/wp-content/uploads/2021/03/timer-tag.png 1520w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<h2>2. Multiple timer on a page</h2>
<p>What if you want to record multiple timer events from the same timer? A single 30 second timer is better than nothing, but what if visitors are spending 5, 10, or as much as 20 minutes on a single page before leaving your site? With only a 30-sec timer, your session duration metric could still be hugely misleading.</p>
<p>The set up will be quite the same, as following instructions below:</p>
<p>1, Create a timer trigger. Set up the same as above, but you should leave limit blank. This will allow the timer listener to fire indefinitely until the user leaves the page or closes their browser.</p>
<p><img loading="lazy" class="aligncenter wp-image-1945 size-large" src="https://vutung.com/wp-content/uploads/2019/08/unlimited-timer-google-analytics-1024x490.png" alt="unlimited-timer-google-analytics" width="900" height="431" srcset="https://vutung.com/wp-content/uploads/2019/08/unlimited-timer-google-analytics-1024x490.png 1024w, https://vutung.com/wp-content/uploads/2019/08/unlimited-timer-google-analytics-300x144.png 300w, https://vutung.com/wp-content/uploads/2019/08/unlimited-timer-google-analytics-768x368.png 768w, https://vutung.com/wp-content/uploads/2019/08/unlimited-timer-google-analytics-680x326.png 680w, https://vutung.com/wp-content/uploads/2019/08/unlimited-timer-google-analytics.png 1132w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>2, Create two new variables to capture the timerEventNumber and timerInterval auto-event variables as follows. At least right now, GTM does not create these macros by default:</p>
<p>Create a new variable named <em>timerEventNumber, </em>set to the value of the <strong>gtm.timerEventNumber </strong>variable in the data layer. This will return the count of the number of times that the timer listener has fired on the page.</p>
<p><img loading="lazy" class="aligncenter wp-image-1947 size-large" src="https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable-1024x563.png" alt="create-user-defined-variable" width="900" height="495" srcset="https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable-1024x563.png 1024w, https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable-300x165.png 300w, https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable-768x422.png 768w, https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable-1536x844.png 1536w, https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable-680x374.png 680w, https://vutung.com/wp-content/uploads/2019/08/create-user-defined-variable.png 1719w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p><img loading="lazy" class="aligncenter wp-image-1949 size-large" src="https://vutung.com/wp-content/uploads/2019/08/create-gtmeventtimer-variable-1024x527.png" alt="Data-layer-variable-configure-time-on-page" width="900" height="463" srcset="https://vutung.com/wp-content/uploads/2019/08/create-gtmeventtimer-variable-1024x527.png 1024w, https://vutung.com/wp-content/uploads/2019/08/create-gtmeventtimer-variable-300x154.png 300w, https://vutung.com/wp-content/uploads/2019/08/create-gtmeventtimer-variable-768x395.png 768w, https://vutung.com/wp-content/uploads/2019/08/create-gtmeventtimer-variable-680x350.png 680w, https://vutung.com/wp-content/uploads/2019/08/create-gtmeventtimer-variable.png 1430w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Create a new variable named <em>timerInterval</em> exactly as above, but with <strong>gtm.timerInterval</strong> as the data layer variable name. This will return the timer interval that you have specified in the listener tag.</p>
<p>3, Configure a variable , custom javascript</p>
<p><img loading="lazy" class="alignnone wp-image-2086 size-large" src="https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable-1024x583.png" alt="" width="900" height="512" srcset="https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable-1024x583.png 1024w, https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable-300x171.png 300w, https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable-768x437.png 768w, https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable-1536x874.png 1536w, https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable-680x387.png 680w, https://vutung.com/wp-content/uploads/2021/03/custom-javascript-variable.png 1736w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Then input the following code into the custom Javascript</p>
<p>function() {<br />var elapsed = {{gtm.timerEventNumber}} * {{gtm.timerInterval}} / 1000;<br />var min = elapsed/60;<br />return min + &#8216;m &#8216;;<br />}</p>
<p> <img loading="lazy" class="aligncenter wp-image-1950 size-large" src="https://vutung.com/wp-content/uploads/2019/08/custom-javescript-variable-1024x529.png" alt="custom-javascript-variable-time-on-page" width="900" height="465" srcset="https://vutung.com/wp-content/uploads/2019/08/custom-javescript-variable-1024x529.png 1024w, https://vutung.com/wp-content/uploads/2019/08/custom-javescript-variable-300x155.png 300w, https://vutung.com/wp-content/uploads/2019/08/custom-javescript-variable-768x397.png 768w, https://vutung.com/wp-content/uploads/2019/08/custom-javescript-variable-680x351.png 680w, https://vutung.com/wp-content/uploads/2019/08/custom-javescript-variable.png 1462w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>4, Configure your Universal Analytics event tag as follows.</p>
<p><img loading="lazy" class="aligncenter wp-image-1954 size-large" src="https://vutung.com/wp-content/uploads/2019/08/Configure-GA-event-1024x885.png" alt="GA-configure-time-on-page" width="900" height="778" srcset="https://vutung.com/wp-content/uploads/2019/08/Configure-GA-event-1024x885.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Configure-GA-event-300x259.png 300w, https://vutung.com/wp-content/uploads/2019/08/Configure-GA-event-768x664.png 768w, https://vutung.com/wp-content/uploads/2019/08/Configure-GA-event-680x588.png 680w, https://vutung.com/wp-content/uploads/2019/08/Configure-GA-event.png 1448w" sizes="(max-width: 900px) 100vw, 900px" /></p>


<p>Finally, in Google Analytics, it will look something like this</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="583" src="https://vutung.com/wp-content/uploads/2020/10/result-real-time-on-page-1024x583.png" alt="google-tag-manager-gtm-time-on-page" class="wp-image-1957" srcset="https://vutung.com/wp-content/uploads/2020/10/result-real-time-on-page-1024x583.png 1024w, https://vutung.com/wp-content/uploads/2020/10/result-real-time-on-page-300x171.png 300w, https://vutung.com/wp-content/uploads/2020/10/result-real-time-on-page-768x437.png 768w, https://vutung.com/wp-content/uploads/2020/10/result-real-time-on-page-680x387.png 680w, https://vutung.com/wp-content/uploads/2020/10/result-real-time-on-page.png 1461w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p></p>
<p>The post <a rel="nofollow" href="https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/">How to use Timer in GTM to track real time on page (Google Tag Manager)</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://vutung.com/2019/08/23/how-to-use-timer-in-gtm-to-track-real-time-on-page/feed/</wfw:commentRss>
			<slash:comments>38</slash:comments>
		
		
			</item>
		<item>
		<title>Send Client ID to Google Analytics to track EVERY SINGLE visitor</title>
		<link>https://vutung.com/2019/08/23/send-client-id-to-google-analytics-to-track-every-single-visitor/</link>
					<comments>https://vutung.com/2019/08/23/send-client-id-to-google-analytics-to-track-every-single-visitor/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 23 Aug 2019 06:18:32 +0000</pubDate>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Tag Manager]]></category>
		<guid isPermaLink="false">https://vutung.com/?p=1892</guid>

					<description><![CDATA[<p>Client ID is the anonymous cookie identifier that Google Analytics assigns to every single browser instance of any given web visitor. It’s how GA calculates the Users metric in views...</p>
<p>The post <a rel="nofollow" href="https://vutung.com/2019/08/23/send-client-id-to-google-analytics-to-track-every-single-visitor/">Send Client ID to Google Analytics to track EVERY SINGLE visitor</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id">Client ID is the anonymous cookie identifier that Google Analytics</a> assigns to every single browser instance of any given web visitor. It’s how GA calculates the Users metric in views which don’t have the User ID feature enabled.</p>
<p>Sending the Client ID as a Custom Dimension to Google Analytics is absolutely necessary. It’s the only way to get row-by-row reports split by user, and it’s the only way to query for data collected from any anonymous user.</p>
<p>The setup is really simple. You need a <strong>Custom Dimension</strong> setup in Universal Analytics, and then you simply need to add a new <strong>Field to set</strong> in your Page View tag (or whatever you want to use to send the data to GA)</p>
<h2>1, Create Custom dimension in Google Analytics</h2>
<p>Click on admin -&gt; custom dimension</p>
<p><img loading="lazy" class="wp-image-2005 size-large aligncenter" src="https://vutung.com/wp-content/uploads/2019/08/Untitled-1024x516.png" alt="custom-dimension-client-id-google-analytics" width="900" height="454" srcset="https://vutung.com/wp-content/uploads/2019/08/Untitled-1024x516.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Untitled-300x151.png 300w, https://vutung.com/wp-content/uploads/2019/08/Untitled-768x387.png 768w, https://vutung.com/wp-content/uploads/2019/08/Untitled-1536x774.png 1536w, https://vutung.com/wp-content/uploads/2019/08/Untitled-680x343.png 680w, https://vutung.com/wp-content/uploads/2019/08/Untitled.png 1714w" sizes="(max-width: 900px) 100vw, 900px" /><img loading="lazy" class="aligncenter size-full wp-image-402" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled-5.png" alt="" width="1302" height="718" /></p>
<p>Name and choose the type. There are 3 scopes in Google Analytics: hit, session and user. Here, client ID is user scope, which related to each cookies.</p>
<p><img loading="lazy" class="wp-image-2008 size-large aligncenter" src="https://vutung.com/wp-content/uploads/2019/08/Untitled2-1024x744.png" alt="custom-dimension-client-id-google-analytics-2" width="900" height="654" srcset="https://vutung.com/wp-content/uploads/2019/08/Untitled2-1024x744.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Untitled2-300x218.png 300w, https://vutung.com/wp-content/uploads/2019/08/Untitled2-768x558.png 768w, https://vutung.com/wp-content/uploads/2019/08/Untitled2-680x494.png 680w, https://vutung.com/wp-content/uploads/2019/08/Untitled2.png 1098w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p><img loading="lazy" class="aligncenter size-full wp-image-404" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled-7.png" alt="" width="1177" height="682" />Then click save. After creating the custom dimensions, there will be an associated index number with it. We will use this index number later.</p>
<p><img loading="lazy" class="aligncenter wp-image-2011 size-large" src="https://vutung.com/wp-content/uploads/2019/08/3-1024x499.png" alt="custom-dimension-client-id-google-analytics-3" width="900" height="439" srcset="https://vutung.com/wp-content/uploads/2019/08/3-1024x499.png 1024w, https://vutung.com/wp-content/uploads/2019/08/3-300x146.png 300w, https://vutung.com/wp-content/uploads/2019/08/3-768x374.png 768w, https://vutung.com/wp-content/uploads/2019/08/3-680x331.png 680w, https://vutung.com/wp-content/uploads/2019/08/3.png 1342w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p><img loading="lazy" class="aligncenter size-full wp-image-412" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled1-3.png" alt="" width="1287" height="648" /></p>
<h2>2, Create a variable in Google Tag Manager</h2>
<p><img loading="lazy" class="aligncenter size-full wp-image-406" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled1.png" alt="" width="1303" height="696" /></p>
<p>First, you navigate to Google Tag Manager, and create a new variable.</p>
<p><img loading="lazy" class="aligncenter wp-image-2016 size-large" src="https://vutung.com/wp-content/uploads/2019/08/4-1024x585.png" alt="custom-dimension-client-id-google-analytics-3" width="900" height="514" srcset="https://vutung.com/wp-content/uploads/2019/08/4-1024x585.png 1024w, https://vutung.com/wp-content/uploads/2019/08/4-300x171.png 300w, https://vutung.com/wp-content/uploads/2019/08/4-768x439.png 768w, https://vutung.com/wp-content/uploads/2019/08/4-1536x877.png 1536w, https://vutung.com/wp-content/uploads/2019/08/4-680x388.png 680w, https://vutung.com/wp-content/uploads/2019/08/4.png 1660w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Then choose custom javascript</p>
<p><img loading="lazy" class="aligncenter wp-image-2018 size-large" src="https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121-1024x549.png" alt="custom-dimension-client-id-google-analytics-5" width="900" height="483" srcset="https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121-1024x549.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121-300x161.png 300w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121-768x411.png 768w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121-1536x823.png 1536w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121-680x364.png 680w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-131121.png 1766w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p><img loading="lazy" class="aligncenter size-full wp-image-407" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled1-1.png" alt="" width="1304" height="696" /></p>
<p>Name that client_id_setter, and input this script</p>
<p><code>function() {<br />     // Modify customDimensionIndex to match the index number you want to send the data to<br />     var customDimensionIndex = 5;<br />     return function(model) {<br />          model.set('dimension' + customDimensionIndex, model.get('clientId'));<br />}<br />}</code></p>
<p><img loading="lazy" class="aligncenter wp-image-2024 size-large" src="https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-132505-1024x687.png" alt="custom-dimension-client-id-google-analytics-7" width="900" height="604" srcset="https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-132505-1024x687.png 1024w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-132505-300x201.png 300w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-132505-768x515.png 768w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-132505-680x456.png 680w, https://vutung.com/wp-content/uploads/2019/08/Screenshot-2020-10-15-132505.png 1410w" sizes="(max-width: 900px) 100vw, 900px" /><br /><img loading="lazy" class="aligncenter size-full wp-image-408" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled1-2.png" alt="" width="1316" height="697" /></p>
<p><strong style="font-size: inherit;">REMEMBER TO CHANGE THE &#8220;customDimensionIndex&#8221; IN THE CODE TO THE INDEX NUMBER IN CUSTOM DIMENSION. Here, we must change it to 2</strong></p>
<p>Then save.</p>
<h2>3, Change Google Analytics variable</h2>
<p>Refer to your Google Analytics variable</p>
<p>Click on More setting</p>
<p><img loading="lazy" class="aligncenter size-full wp-image-400" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled-3.png" alt="" width="1134" height="690" /></p>
<p>Enter as below screenshot</p>
<p><img loading="lazy" class="aligncenter wp-image-2026 size-large" src="https://vutung.com/wp-content/uploads/2019/08/5-1024x657.png" alt="custom-dimension-client-id-google-analytics-8" width="900" height="577" srcset="https://vutung.com/wp-content/uploads/2019/08/5-1024x657.png 1024w, https://vutung.com/wp-content/uploads/2019/08/5-300x192.png 300w, https://vutung.com/wp-content/uploads/2019/08/5-768x493.png 768w, https://vutung.com/wp-content/uploads/2019/08/5-680x436.png 680w, https://vutung.com/wp-content/uploads/2019/08/5.png 1481w" sizes="(max-width: 900px) 100vw, 900px" /><img loading="lazy" class="aligncenter size-full wp-image-401" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled-4.png" alt="" width="908" height="692" /></p>
<p>Then save.</p>
<p>After all changes, you may see the client ID as secondary dimension</p>
<p><img loading="lazy" class="aligncenter size-full wp-image-398" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/Untitled-2.png" alt="" width="666" height="526" />Good luck on your Digital Marketing career.</p>
<p>Source: https://www.simoahava.com/gtm-tips/use-customtask-access-tracker-values-google-tag-manager/</p>


<p></p>
<p>The post <a rel="nofollow" href="https://vutung.com/2019/08/23/send-client-id-to-google-analytics-to-track-every-single-visitor/">Send Client ID to Google Analytics to track EVERY SINGLE visitor</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://vutung.com/2019/08/23/send-client-id-to-google-analytics-to-track-every-single-visitor/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Configure Cross-Domain Tracking on Google Tag Manager</title>
		<link>https://vutung.com/2019/08/23/configure-cross-domain-tracking-on-google-tag-manager/</link>
					<comments>https://vutung.com/2019/08/23/configure-cross-domain-tracking-on-google-tag-manager/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 23 Aug 2019 06:18:07 +0000</pubDate>
				<category><![CDATA[Tag Manager]]></category>
		<guid isPermaLink="false">https://vutung.com/?p=1890</guid>

					<description><![CDATA[<p>Configure cross domain tracking with Google Tag Manger is much more easier now. Open up Google Tag Manager and Choose your Container.  Chose your Google Analytics Tag (If you are...</p>
<p>The post <a rel="nofollow" href="https://vutung.com/2019/08/23/configure-cross-domain-tracking-on-google-tag-manager/">Configure Cross-Domain Tracking on Google Tag Manager</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Configure cross domain tracking with Google Tag Manger is much more easier now.</p>
<ol>
<li>Open up Google Tag Manager and Choose your Container.</li>
<li> Chose your Google Analytics Tag (If you are not using Google Tag Manger to deploy your analytics tag you should migrate it over).</li>
<li>Click Configure Tag Section</li>
<li>Choose Advanced Settings</li>
<li>Click Field to Set</li>
<li>Under Field Name, choose  allowLinker and under value, type true.</li>
<li> Next Go to Cross Domain Tracking, add your two domains, i.e. domainA.com, domainB.com</li>
<li>Under Hash Delimiter, leave False and Under Decorate Forms, leave False.</li>
</ol>
<p><img loading="lazy" class="aligncenter size-full wp-image-425" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/allowLinker.png" alt="" width="684" height="317" /></p>
<p>After setting the allowLinker field, you can set the cross domain tracking for the two domains that are needed.</p>
<p><img loading="lazy" class="aligncenter size-full wp-image-424" src="https://demo2.themaorishop.com/wp-content/uploads/2018/09/add_domains.png" alt="" width="451" height="393" /></p>
<p>The post <a rel="nofollow" href="https://vutung.com/2019/08/23/configure-cross-domain-tracking-on-google-tag-manager/">Configure Cross-Domain Tracking on Google Tag Manager</a> appeared first on <a rel="nofollow" href="https://vutung.com">Vu Thanh Tung</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://vutung.com/2019/08/23/configure-cross-domain-tracking-on-google-tag-manager/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
