<?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>Jorink.nl &#187; Google</title>
	<atom:link href="http://www.jorink.nl/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jorink.nl</link>
	<description>Just for documentation</description>
	<lastBuildDate>Thu, 15 Dec 2011 09:36:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Enable Google Analytics Page Tracking in a Single-Name Intranet Site</title>
		<link>http://www.jorink.nl/2010/02/enable-google-analytics-page-tracking-in-a-single-name-intranet-site/</link>
		<comments>http://www.jorink.nl/2010/02/enable-google-analytics-page-tracking-in-a-single-name-intranet-site/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 14:02:09 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=67</guid>
		<description><![CDATA[Recently I’ve been asked how to get Google Analytics working in an intranet site with a single name in the URL, for example: http://intranet. The first time I added Google Analytics to a site it was a development site accessed by server-name:port-number. For days after correctly adding the tracking code there was still no data [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I’ve been asked how to get Google Analytics working in an  intranet site with a single name in the URL, for example: <strong>http://intranet. </strong>The first time I added Google Analytics to a site it was a  development site accessed by server-name:port-number. For days after  correctly adding the tracking code there was still no data showing up in  the Google Analytics dashboard reports.</p>
<p>Turns out the fix required adding one simple JavaScript call to a  Google JavaScript API function. When adding Google Analytics tracking  code to a site with a single name in the URL you need to call <a href="http://mikeknowles.com/blog/ct.ashx?id=291ea292-401e-47b0-8cc6-d5624427cc1f&amp;url=http%3a%2f%2fcode.google.com%2fapis%2fanalytics%2fdocs%2fgaJS%2fgaJSApiDomainDirectory.html%23_gat.GA_Tracker_._setDomainName" target="_blank">_setDomainName(“none”)</a> prior to making the call to <a href="http://mikeknowles.com/blog/ct.ashx?id=291ea292-401e-47b0-8cc6-d5624427cc1f&amp;url=http%3a%2f%2fcode.google.com%2fapis%2fanalytics%2fdocs%2fgaJS%2fgaJSApiBasicConfiguration.html%23_gat.GA_Tracker_._trackPageview" target="_blank">_trackPageView</a>:</p>
<p><a href="http://mikeknowles.com/blog/ct.ashx?id=291ea292-401e-47b0-8cc6-d5624427cc1f&amp;url=http%3a%2f%2fmikeknowles.com%2fblog%2fcontent%2fbinary%2fWindowsLiveWriter%2fEnableGoogleAnalyticsPageTrackinginaSing_11D5E%2fimage_2.png" rel="lightbox[67]" title="image"><img title="image" src="http://mikeknowles.com/blog/content/binary/WindowsLiveWriter/EnableGoogleAnalyticsPageTrackinginaSing_11D5E/image_thumb.png" border="0" alt="image" width="587" height="190" /></a></p>
<p><span id="more-67"></span>By default the Google Tracking Code snippet provided in the Google  Analytics Profile Settings uses the “auto” domain name mode which  expects to see a <a href="http://mikeknowles.com/blog/ct.ashx?id=291ea292-401e-47b0-8cc6-d5624427cc1f&amp;url=http%3a%2f%2fen.wikipedia.org%2fwiki%2fFully_qualified_domain_name" target="_blank">fully-qualified domain name (FQDN)</a> composed of the  domain name, followed by a period, followed by the domain extension  (.com, .net, .biz, etc.). Setting the domain name to “none” disables the  FQDN requirement and will record your pages in Google Analytics the  same as a site with a FQDN.</p>
<p>I have deployed this fix with success to both a SharePoint 2007 Team  Site and Publishing Portal site available only by a single name URL and  port number. In both cases the site data was not showing up in Analytics  until I added the call to set the domain name to “none”. It’s critical  that you call <strong>_setDomainName</strong> before calling <strong>_trackPageView</strong> for this change to have any effect.</p>
<p>As with all changes to JavaScript tracking code it can take up to 24  hours before you see data start showing up in the Google Analytics  dashboard reports, and changes only apply going forward so there’s no  way to recover clicks from before you deployed the code change.</p>
<p>Here’s an example of the tracking code with the domain name set to  “none”. Replace YOUR_WEB_PROPERTY_ID with the value assigned to your  site profile by Google Analytics:</p>
<div><a title="view source" href="http://mikeknowles.com/blog/#viewSource">view source</a><a title="print" href="http://mikeknowles.com/blog/#printSource">print</a><a title="?" href="http://mikeknowles.com/blog/#about">?</a></div>
<div>
<div>
<table>
<tbody>
<tr>
<td><code>01</code></td>
<td><code>&lt;script  type=</code><code>"text/javascript"</code><code>&gt;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>02</code></td>
<td><code>var</code> <code>gaJsHost = ((</code><code>"https:"</code> <code>==  document.location.protocol) ? </code><code>"https://ssl."</code> <code>: </code><code>"http://www."</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>03</code></td>
<td><code>document.write(unescape(</code><code>"%3Cscript  src='"</code> <code>+ gaJsHost + </code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>04</code></td>
<td><code> </code><code>"google-analytics.com/ga.js'   type='text/javascript'%3E%3C/script%3E"</code><code>));</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>05</code></td>
<td><code>&lt;/script&gt;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>06</code></td>
<td><code>&lt;script  type=</code><code>"text/javascript"</code><code>&gt;</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>07</code></td>
<td><code>try</code> <code>{</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>08</code></td>
<td><code>var</code> <code>pageTracker = _gat._getTracker(</code><code>"YOUR_WEB_PROPERTY_ID"</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>09</code></td>
<td><code>pageTracker._setDomainName(</code><code>"none"</code><code>);</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>10</code></td>
<td><code>pageTracker._trackPageview();</code></td>
</tr>
</tbody>
</table>
</div>
<table>
<tbody>
<tr>
<td><code>11</code></td>
<td><code>} </code><code>catch</code><code>(err)   {}&lt;/script&gt;</code></td>
</tr>
</tbody>
</table>
</div>
<p>Source : <a href="http://mikeknowles.com/blog/2009/07/11/EnableGoogleAnalyticsPageTrackingInASingleNameIntranetSite.aspx" target="_blank">http://mikeknowles.com/blog/2009/07/11/EnableGoogleAnalyticsPageTrackingInASingleNameIntranetSite.aspx</a><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/02/enable-google-analytics-page-tracking-in-a-single-name-intranet-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Exclude traffic from directory &#8211; Analytics Integrations &#124; Google Groups</title>
		<link>http://www.jorink.nl/2010/02/exclude-traffic-from-directory-analytics-integrations-google-groups/</link>
		<comments>http://www.jorink.nl/2010/02/exclude-traffic-from-directory-analytics-integrations-google-groups/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 10:26:48 +0000</pubDate>
		<dc:creator>Arjan Jorink</dc:creator>
				<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.jorink.nl/?p=7</guid>
		<description><![CDATA[I have two profiles on my site that I want to separately monitor in Google Analytics. Profile A: The entire site: http://www.mysite.nl Profile B: One certain directory on my site: http://www.mysite.nl/mydir/ Profile A should not include traffic from the subdirectory /mydir/ and Profile B should not gather any information but in the directory mydir. There [...]]]></description>
			<content:encoded><![CDATA[<p>I have two profiles on my site that I want to separately monitor in Google Analytics.</p>
<p>Profile A: The entire site: http://www.mysite.nl<br />
Profile B: One certain directory on my site: http://www.mysite.nl/mydir/</p>
<p>Profile A should not include traffic from the subdirectory /mydir/ and<br />
Profile B should not gather any information but in the directory mydir.</p>
<p>There are two solutions:</p>
<p>For Profile A:<br />
create a &#8216;custom filter&#8217;:<br />
&#8216;exclude&#8217;<br />
Filter Field: Request URI<br />
Filter Pattern: ^/mydir/</p>
<p>For Profile B:<br />
create a &#8216;custom filter&#8217;:<br />
&#8216;include&#8217;<br />
Filter Field: Request URI<br />
Filter Pattern: ^/mydir/</p>
<p>or</p>
<p>(For Profile B:)<br />
create filter:  &#8216;include only traffic from a subdirectory&#8217;<br />
Subdirectory: ^/mydir/</p>
<p>Source : <a href="http://groups.google.com/group/analytics-help-integrations/browse_thread/thread/c3df4e4c6025e12b?pli=1" target="_blank">Groups Google</a><!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jorink.nl/2010/02/exclude-traffic-from-directory-analytics-integrations-google-groups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

