<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How To Track Clicks On #Anchors in Google Analytics	</title>
	<atom:link href="https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html?utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>Canada&#039;s Search and Social Media Authority</description>
	<lastBuildDate>Fri, 15 Nov 2013 09:53:18 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Jeremy		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-618562</link>

		<dc:creator><![CDATA[Jeremy]]></dc:creator>
		<pubDate>Fri, 15 Nov 2013 09:53:18 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-618562</guid>

					<description><![CDATA[I&#039;m still trying to understand this. The &#039;_setAllowAnchor&#039;, true seems to be about replacing the delimiter for campaigns. What I want to do is track internal references to #anchors on the site.

For that, I need + location.hash

Is this right?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still trying to understand this. The &#8216;_setAllowAnchor&#8217;, true seems to be about replacing the delimiter for campaigns. What I want to do is track internal references to #anchors on the site.</p>
<p>For that, I need + location.hash</p>
<p>Is this right?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dave		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-265862</link>

		<dc:creator><![CDATA[Dave]]></dc:creator>
		<pubDate>Tue, 12 Feb 2013 16:14:47 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-265862</guid>

					<description><![CDATA[Trying to understand the # anchor and Google analytics

 I have the following at the top of my index.html file


  var _gaq = _gaq &#124;&#124; [];
  _gaq.push([&#039;_setAccount&#039;, &#039;UA-XXXXXXXX-X&#039;]);
  _gaq.push([&#039;_trackPageview&#039;]);
  (function() {
    var ga = document.createElement(&#039;script&#039;); ga.type = &#039;text/javascript&#039;; ga.async = true;
    ga.src = (&#039;https:&#039; == document.location.protocol ? &#039;https://ssl&#039; : &#039;http://www&#039;) + &#039;.google-analytics.com/ga.js&#039;;
    var s = document.getElementsByTagName(&#039;script&#039;)[0]; s.parentNode.insertBefore(ga, s);
  })();


Then on the intro page I have a menu bar which goes to different pages i.e.

‘
‘
‘
‘
‘&lt;a href=&quot;#!/page_HOME&quot;&gt;HOME PAGE&lt;/a&gt;
‘
‘
‘&lt;a href=&quot;#!/page_ABOUT&quot;&gt;ABOUT US&lt;/a&gt;
‘
‘
‘&lt;a href=&quot;#!/page_MORE&quot;&gt;
‘Future Use&lt;/a&gt;
‘
‘
‘&lt;a href=&quot;#!/page_SERVICES&quot;&gt;RESULTS&lt;/a&gt;
‘
‘

Then I have the individual pages on the main index.html file i.e.

‘
‘
‘
‘
‘
‘Test Website


Where and what do I use as the code to track these

‘#!/page_HOME

‘#!/page_SERVICES]]></description>
			<content:encoded><![CDATA[<p>Trying to understand the # anchor and Google analytics</p>
<p> I have the following at the top of my index.html file</p>
<p>  var _gaq = _gaq || [];<br />
  _gaq.push([&#8216;_setAccount&#8217;, &#8216;UA-XXXXXXXX-X&#8217;]);<br />
  _gaq.push([&#8216;_trackPageview&#8217;]);<br />
  (function() {<br />
    var ga = document.createElement(&#8216;script&#8217;); ga.type = &#8216;text/javascript&#8217;; ga.async = true;<br />
    ga.src = (&#8216;https:&#8217; == document.location.protocol ? &#8216;https://ssl&#8217; : &#8216;http://www&#8217;) + &#8216;.google-analytics.com/ga.js&#8217;;<br />
    var s = document.getElementsByTagName(&#8216;script&#8217;)[0]; s.parentNode.insertBefore(ga, s);<br />
  })();</p>
<p>Then on the intro page I have a menu bar which goes to different pages i.e.</p>
<p>‘<br />
‘<br />
‘<br />
‘<br />
‘<a href="#!/page_HOME">HOME PAGE</a><br />
‘<br />
‘<br />
‘<a href="#!/page_ABOUT">ABOUT US</a><br />
‘<br />
‘<br />
‘<a href="#!/page_MORE"><br />
‘Future Use</a><br />
‘<br />
‘<br />
‘<a href="#!/page_SERVICES">RESULTS</a><br />
‘<br />
‘</p>
<p>Then I have the individual pages on the main index.html file i.e.</p>
<p>‘<br />
‘<br />
‘<br />
‘<br />
‘<br />
‘Test Website</p>
<p>Where and what do I use as the code to track these</p>
<p>‘#!/page_HOME</p>
<p>‘#!/page_SERVICES</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: joe limon		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-72241</link>

		<dc:creator><![CDATA[joe limon]]></dc:creator>
		<pubDate>Tue, 19 Apr 2011 17:23:15 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-72241</guid>

					<description><![CDATA[I think I may have found my answer in the thread&lt;a href=&quot;http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=5344a23e03f8b495&#038;hl=en&quot;&gt;Can a url contain both a page anchor and campaign tracking codes?&lt;/a&gt; at the Google Help forum]]></description>
			<content:encoded><![CDATA[<p>I think I may have found my answer in the thread<a href="http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=5344a23e03f8b495&amp;hl=en" data-wpel-link="external" target="_blank" rel="nofollow external noopener noreferrer" class="ext-link">Can a url contain both a page anchor and campaign tracking codes?</a> at the Google Help forum</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tiggerito		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-45391</link>

		<dc:creator><![CDATA[Tiggerito]]></dc:creator>
		<pubDate>Tue, 14 Dec 2010 00:48:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-45391</guid>

					<description><![CDATA[@Shockley: I agree about the pageview inflation issue. That&#039;s why I would track them as events.

Google Analytics ignores anchor links because it does not see them. In reality a browser makes a request without the anchor (#) part then locally moves to its position when the page is returned. Google code tracks the URL in the request, which is anchor free. 

Also, when you have an in page anchor link, it will not trigger a new request. It just locally moves to that new position. Your browsers Address bar also gets updated but Google&#039;s code is not re-run to capture the click.

Hence the code to manually trigger a page hit or event.
.-= Tiggerito recently posted: &lt;a href=&quot;http://seo-website-designer.com/Popular-SEO-Articles?utm_source=RSSTitle&#038;utm_medium=Feed&#038;utm_campaign=RssTitleFeed&quot;&gt;The Most Popular SEO &#038;amp Website Promotion Articles&lt;/a&gt; =-.]]></description>
			<content:encoded><![CDATA[<p>@Shockley: I agree about the pageview inflation issue. That&#8217;s why I would track them as events.</p>
<p>Google Analytics ignores anchor links because it does not see them. In reality a browser makes a request without the anchor (#) part then locally moves to its position when the page is returned. Google code tracks the URL in the request, which is anchor free. </p>
<p>Also, when you have an in page anchor link, it will not trigger a new request. It just locally moves to that new position. Your browsers Address bar also gets updated but Google&#8217;s code is not re-run to capture the click.</p>
<p>Hence the code to manually trigger a page hit or event.<br />
.-= Tiggerito recently posted: <a href="http://seo-website-designer.com/Popular-SEO-Articles?utm_source=RSSTitle&amp;utm_medium=Feed&amp;utm_campaign=RssTitleFeed" data-wpel-link="external" target="_blank" rel="nofollow external noopener noreferrer" class="ext-link">The Most Popular SEO &amp;amp Website Promotion Articles</a> =-.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tiggerito		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-44519</link>

		<dc:creator><![CDATA[Tiggerito]]></dc:creator>
		<pubDate>Thu, 09 Dec 2010 22:06:56 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-44519</guid>

					<description><![CDATA[I new that would happen!

See if this works

&#060;a href=&quot;#somewhere&quot; onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, location.pathname + location.search + &#039;#somewhere&#039;]);&quot;&#062;somewhere&#060;/a&#062;

Or you may want to track it as an event.

&#060;a href=&quot;#somewhere&quot; onclick=&quot;_gaq.push([&#039;_trackEvent&#039;, &#039;anchor&#039;, &#039;click&#039;, &#039;somewhere&#039;]);&quot;&#062;somewhere&#060;/a&#062;
.-= Tiggerito recently posted: &lt;a href=&quot;http://seo-website-designer.com/Popular-SEO-Articles?utm_source=RSSTitle&#038;utm_medium=Feed&#038;utm_campaign=RssTitleFeed&quot;&gt;The Most Popular SEO &#038;amp Website Promotion Articles&lt;/a&gt; =-.]]></description>
			<content:encoded><![CDATA[<p>I new that would happen!</p>
<p>See if this works</p>
<p>&lt;a href=&#8221;#somewhere&#8221; onclick=&#8221;_gaq.push([&#8216;_trackPageview&#8217;, location.pathname + location.search + &#8216;#somewhere&#8217;]);&#8221;&gt;somewhere&lt;/a&gt;</p>
<p>Or you may want to track it as an event.</p>
<p>&lt;a href=&#8221;#somewhere&#8221; onclick=&#8221;_gaq.push([&#8216;_trackEvent&#8217;, &#8216;anchor&#8217;, &#8216;click&#8217;, &#8216;somewhere&#8217;]);&#8221;&gt;somewhere&lt;/a&gt;<br />
.-= Tiggerito recently posted: <a href="http://seo-website-designer.com/Popular-SEO-Articles?utm_source=RSSTitle&amp;utm_medium=Feed&amp;utm_campaign=RssTitleFeed" data-wpel-link="external" target="_blank" rel="nofollow external noopener noreferrer" class="ext-link">The Most Popular SEO &amp;amp Website Promotion Articles</a> =-.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nuvenus Chovendus		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-44424</link>

		<dc:creator><![CDATA[Nuvenus Chovendus]]></dc:creator>
		<pubDate>Thu, 09 Dec 2010 12:20:02 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-44424</guid>

					<description><![CDATA[Shockley, I do not know if the question is timely, but what is the direct influence of the anchor on the placements? Is there any special treatment for the search engines? If so, how this influences the data in analytics?

Thanks,
Nuvenus Chovendus
.-= Nuvenus Chovendus recently posted: &lt;a href=&quot;http://www.nuvenuschovendusa.net/nuvenus-chovendus/fa-comenta-sobre-o-nuvenus/&quot;&gt;Fab comenta sobre o Nuvenus e os Voos&lt;/a&gt; =-.]]></description>
			<content:encoded><![CDATA[<p>Shockley, I do not know if the question is timely, but what is the direct influence of the anchor on the placements? Is there any special treatment for the search engines? If so, how this influences the data in analytics?</p>
<p>Thanks,<br />
Nuvenus Chovendus<br />
.-= Nuvenus Chovendus recently posted: <a href="http://www.nuvenuschovendusa.net/nuvenus-chovendus/fa-comenta-sobre-o-nuvenus/" data-wpel-link="external" target="_blank" rel="nofollow external noopener noreferrer" class="ext-link">Fab comenta sobre o Nuvenus e os Voos</a> =-.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nick Thomas		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-44406</link>

		<dc:creator><![CDATA[Nick Thomas]]></dc:creator>
		<pubDate>Thu, 09 Dec 2010 11:01:48 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-44406</guid>

					<description><![CDATA[Hii tried many a times but still cldn&#039;t track clicks on the same do we have any other way too....?????]]></description>
			<content:encoded><![CDATA[<p>Hii tried many a times but still cldn&#8217;t track clicks on the same do we have any other way too&#8230;.?????</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: amanda schreiner		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-44226</link>

		<dc:creator><![CDATA[amanda schreiner]]></dc:creator>
		<pubDate>Wed, 08 Dec 2010 21:34:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-44226</guid>

					<description><![CDATA[Hello,

I added this code to our google analytics and it is not tracking the anchor tag links.

Could the error be because we are using a CMS that makes links with wild URLS? how does this actually work calling the location.hash? 

I wish i could explain this better. We are using Red Dot/Open Text.]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>I added this code to our google analytics and it is not tracking the anchor tag links.</p>
<p>Could the error be because we are using a CMS that makes links with wild URLS? how does this actually work calling the location.hash? </p>
<p>I wish i could explain this better. We are using Red Dot/Open Text.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tiggerito		</title>
		<link>https://www.searchenginepeople.com/blog/how-to-track-clicks-on-anchors-in-google-analytics.html/comment-page-1#comment-43727</link>

		<dc:creator><![CDATA[Tiggerito]]></dc:creator>
		<pubDate>Tue, 07 Dec 2010 16:21:19 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/?p=9803#comment-43727</guid>

					<description><![CDATA[Nice trick.

This would track when the hash is in a link or directly typed in to a browser.

It would not pick up proper internal page anchor links (like href=&quot;#top&quot;) or javascript that causes hash changes to the browsers URL. This is because they don&#039;t cause the page to reload and trigger your code.

In those cases you would want to add javascript into an onclick attribute or the dynamic code, that included some _trackPageview code.]]></description>
			<content:encoded><![CDATA[<p>Nice trick.</p>
<p>This would track when the hash is in a link or directly typed in to a browser.</p>
<p>It would not pick up proper internal page anchor links (like href=&#8221;#top&#8221;) or javascript that causes hash changes to the browsers URL. This is because they don&#8217;t cause the page to reload and trigger your code.</p>
<p>In those cases you would want to add javascript into an onclick attribute or the dynamic code, that included some _trackPageview code.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
