<?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: Hiding Google Analytics Campaign Variables</title>
	<atom:link href="http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://esev.com/rss/blog/tutorial/hiding-google-analytics-campaign-variables/</link>
	<description>Just another randomly updated blog</description>
	<lastBuildDate>Fri, 11 Jun 2010 23:38:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Blankster</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-80</link>
		<dc:creator>Blankster</dc:creator>
		<pubDate>Fri, 11 Jun 2010 23:38:53 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-80</guid>
		<description>Forgot to say this is a really great posting which covers the whole thing very nicely. I&#039;ve searched trough the net for a long time, but I didn&#039;t found something similar like your posting about hiding the campaign variables... Thanks a lot! </description>
		<content:encoded><![CDATA[<p>Forgot to say this is a really great posting which covers the whole thing very nicely. I&#039;ve searched trough the net for a long time, but I didn&#039;t found something similar like your posting about hiding the campaign variables&#8230; Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blankster</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-79</link>
		<dc:creator>Blankster</dc:creator>
		<pubDate>Fri, 11 Jun 2010 23:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-79</guid>
		<description>Looks like I&#039;m exactly in this situation... I want to use bit.ly to redirect users to the right url. But how exactly would you configure the whole stuff to don&#039;t show the campaign information in the url? Can you please be a little bit more specific? Sounds very interesting... </description>
		<content:encoded><![CDATA[<p>Looks like I&#039;m exactly in this situation&#8230; I want to use bit.ly to redirect users to the right url. But how exactly would you configure the whole stuff to don&#039;t show the campaign information in the url? Can you please be a little bit more specific? Sounds very interesting&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FeedBurner 跳转 URL 也加入了又臭又长的追踪代码，怎么办？ - 网来网去-http://www.webcomgo.com专注互联网分析、SEO、电子商务、管理营销、GTD、生活日志 爱皇冠 乐淘淘</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-55</link>
		<dc:creator>FeedBurner 跳转 URL 也加入了又臭又长的追踪代码，怎么办？ - 网来网去-http://www.webcomgo.com专注互联网分析、SEO、电子商务、管理营销、GTD、生活日志 爱皇冠 乐淘淘</dc:creator>
		<pubDate>Tue, 17 Nov 2009 01:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-55</guid>
		<description>[...] 将这些参数都变成“#”，隐藏起来 [...]</description>
		<content:encoded><![CDATA[<p>[...] 将这些参数都变成“#”，隐藏起来 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: katinka</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-54</link>
		<dc:creator>katinka</dc:creator>
		<pubDate>Mon, 16 Nov 2009 18:26:56 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-54</guid>
		<description>I don&#039;t see why there is anything more necessary than the canonical URL tag. In fact: this is a great use for that tag and more necessary than most other uses I can think of. As for google analytics for wordpress: am I to understand it already uses the # instead of the ? version of the code?  </description>
		<content:encoded><![CDATA[<p>I don&#039;t see why there is anything more necessary than the canonical URL tag. In fact: this is a great use for that tag and more necessary than most other uses I can think of. As for google analytics for wordpress: am I to understand it already uses the # instead of the ? version of the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damien</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-53</link>
		<dc:creator>Damien</dc:creator>
		<pubDate>Thu, 05 Nov 2009 17:22:33 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-53</guid>
		<description>Have you tried passing in the campaign information directly into the GA _trackPageView? I&#039;m looking at using a tidy URL that doesn&#039;t expose marketing information to the end user, e.g. mysite.com/?campaign=1, rather than mysite.com/?utm_source=..., etc. 
 
So the key would be to override the query parameters in the _trackPageView call directly, e.g. _trackPageView(&#039;/?utm_source=...&#039;), rather than setting the codes on the page URL. Have you tried this technique yourself? </description>
		<content:encoded><![CDATA[<p>Have you tried passing in the campaign information directly into the GA _trackPageView? I&#039;m looking at using a tidy URL that doesn&#039;t expose marketing information to the end user, e.g. mysite.com/?campaign=1, rather than mysite.com/?utm_source=&#8230;, etc. </p>
<p>So the key would be to override the query parameters in the _trackPageView call directly, e.g. _trackPageView(&#039;/?utm_source=&#8230;&#039;), rather than setting the codes on the page URL. Have you tried this technique yourself?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Severance</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-17</link>
		<dc:creator>Eric Severance</dc:creator>
		<pubDate>Tue, 07 Jul 2009 11:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-17</guid>
		<description>&lt;a href=&quot;#comment-16&quot; rel=&quot;nofollow&quot;&gt;@Joost de Valk &lt;/a&gt; 
One of the reasons for this post was to get suggestions on how this could be done better.  MANY thanks for the comment!  Most people will find campaign tracking with the &#039;#&#039; URL fragment will solve any issues with search engines indexing their content.  And yes, now that I look at it, knowing that a link in a twitter tweet was posted to digg could be valuable information!  So hiding the campaign variables from the user might not always be a good idea.  That&#039;s a very good point!  Thank you for mentioning it.

I probably got started down this path the same way most people do. I noticed my campaign links showing up in Google search results and I panicked. :) I didn&#039;t realize that it takes time for the Google crawler to process the canonical header link and update their index.  In my case it took about 3-4 days.

My first approach to solving this was exactly as you suggested.  I clicked the checkbox labeled &#039;&lt;i&gt;Use # instead of ? for Campaign tracking?&lt;/i&gt;&#039; in your Google Analytics for Wordpress plugin.  Then I started adjusting all my existing redirects to use the &#039;#&#039; rather than &#039;?&#039;.  When I changed my Apache mod_rewrite rules I found that Apache escaped the &#039;#&#039; and turned it into a %23.  I thought I might run into similar problems with other websites not accepting campaign tracking with &#039;#&#039;, so I figured campaign tracking with &#039;#&#039; wouldn&#039;t work for me. (Note: I know better now - for anyone else looking for the answer to this, use the &lt;tt&gt;noescape&lt;/tt&gt; option in the RewriteRule to prevent Apache from turning it into a %23).

Another motivation for not using the &#039;#&#039; hash fragment for the campaign tracking was due to a photography website that I&#039;m currently putting together.  The photography website uses an AJAX interface to allow switching between images quickly without doing a complete page reload (similar to what is done on smugmug.com).  To keep a proper history state in the client&#039;s browser, this site stores its photoID (identifies a specific/unique photo in a gallery) in the &#039;#&#039; fragment.  This modifies the URL so the browser&#039;s &#039;Back&#039; and &#039;Forward&#039; buttons work correctly - and, since it only modifies the &#039;#&#039; fragment, it doesn&#039;t trigger a complete reload of the web page. It is also used so that the client can add a bookmark while looking at a specific image and, when they visit that bookmark, the site will fetch that same image.

That&#039;s probably a longer description than needed, but using the &#039;#&#039; fragment for campaign tracking on this photo site would interfere with the AJAX navigation that is also done using the &#039;#&#039; fragment.  I was looking for a solution that would keep search engines from seeing (and indexing) the campaign variables while at the same time not interfering with the &#039;#&#039; based navigation features of the photo site.  And that is how I arrived at this solution.</description>
		<content:encoded><![CDATA[<p><a href="#comment-16" rel="nofollow">@Joost de Valk </a><br />
One of the reasons for this post was to get suggestions on how this could be done better.  MANY thanks for the comment!  Most people will find campaign tracking with the &#8216;#&#8217; URL fragment will solve any issues with search engines indexing their content.  And yes, now that I look at it, knowing that a link in a twitter tweet was posted to digg could be valuable information!  So hiding the campaign variables from the user might not always be a good idea.  That&#8217;s a very good point!  Thank you for mentioning it.</p>
<p>I probably got started down this path the same way most people do. I noticed my campaign links showing up in Google search results and I panicked. <img src='http://esev.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I didn&#8217;t realize that it takes time for the Google crawler to process the canonical header link and update their index.  In my case it took about 3-4 days.</p>
<p>My first approach to solving this was exactly as you suggested.  I clicked the checkbox labeled &#8216;<i>Use # instead of ? for Campaign tracking?</i>&#8216; in your Google Analytics for WordPress plugin.  Then I started adjusting all my existing redirects to use the &#8216;#&#8217; rather than &#8216;?&#8217;.  When I changed my Apache mod_rewrite rules I found that Apache escaped the &#8216;#&#8217; and turned it into a %23.  I thought I might run into similar problems with other websites not accepting campaign tracking with &#8216;#&#8217;, so I figured campaign tracking with &#8216;#&#8217; wouldn&#8217;t work for me. (Note: I know better now &#8211; for anyone else looking for the answer to this, use the <tt>noescape</tt> option in the RewriteRule to prevent Apache from turning it into a %23).</p>
<p>Another motivation for not using the &#8216;#&#8217; hash fragment for the campaign tracking was due to a photography website that I&#8217;m currently putting together.  The photography website uses an AJAX interface to allow switching between images quickly without doing a complete page reload (similar to what is done on smugmug.com).  To keep a proper history state in the client&#8217;s browser, this site stores its photoID (identifies a specific/unique photo in a gallery) in the &#8216;#&#8217; fragment.  This modifies the URL so the browser&#8217;s &#8216;Back&#8217; and &#8216;Forward&#8217; buttons work correctly &#8211; and, since it only modifies the &#8216;#&#8217; fragment, it doesn&#8217;t trigger a complete reload of the web page. It is also used so that the client can add a bookmark while looking at a specific image and, when they visit that bookmark, the site will fetch that same image.</p>
<p>That&#8217;s probably a longer description than needed, but using the &#8216;#&#8217; fragment for campaign tracking on this photo site would interfere with the AJAX navigation that is also done using the &#8216;#&#8217; fragment.  I was looking for a solution that would keep search engines from seeing (and indexing) the campaign variables while at the same time not interfering with the &#8216;#&#8217; based navigation features of the photo site.  And that is how I arrived at this solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joost de Valk</title>
		<link>http://esev.com/blog/tutorial/hiding-google-analytics-campaign-variables/#comment-16</link>
		<dc:creator>Joost de Valk</dc:creator>
		<pubDate>Tue, 07 Jul 2009 05:37:29 +0000</pubDate>
		<guid isPermaLink="false">http://esev.com/blog/?p=159#comment-16</guid>
		<description>Now I haven&#039;t had any coffee yet, but how&#039;s the result of this different from doing campaign tracking with # other than the bookmarking aspect? And how much of an issue is the bookmarking aspect of this, really? Might actually be valuable data if you look at it from another point of view :)</description>
		<content:encoded><![CDATA[<p>Now I haven&#8217;t had any coffee yet, but how&#8217;s the result of this different from doing campaign tracking with # other than the bookmarking aspect? And how much of an issue is the bookmarking aspect of this, really? Might actually be valuable data if you look at it from another point of view <img src='http://esev.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
