<?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"
	>
<channel>
	<title>Comments on: How To Identify Query Parameters With Google Analytics</title>
	<atom:link href="http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/</link>
	<description>LunaMetric's blog on conversion rate and web analytics</description>
	<pubDate>Sun, 12 Oct 2008 10:00:27 +0000</pubDate>
	<generator>http://wordpress.org/</generator>
		<item>
		<title>By: Jason Green</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1052</link>
		<dc:creator>Jason Green</dc:creator>
		<pubDate>Wed, 26 Dec 2007 13:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1052</guid>
		<description>Thanks for fixing up my code Jeremy.  I knew there were lots of ways to improve this macro, and I appreciate you letting us know what we could change.  If you see anything else, please let us know.</description>
		<content:encoded><![CDATA[<p>Thanks for fixing up my code Jeremy.  I knew there were lots of ways to improve this macro, and I appreciate you letting us know what we could change.  If you see anything else, please let us know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Aube</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1044</link>
		<dc:creator>Jeremy Aube</dc:creator>
		<pubDate>Thu, 20 Dec 2007 22:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1044</guid>
		<description>I was able to get a hold of the source code for your macro. Everything looked pretty good, but there were a few things I might change:

1. Change
 
If InStr(remainParams, "&#38;") &#62; 0 Then
     findAmp = InStr(remainParams, "&#38;") + 1          ' in the remaining string, find the index of the &#38;
     remainParams = Mid(remainParams, findAmp, Len(myCell) - findAmp + 1) ' lose the &#38; and everything before
End If

to

If InStr(remainParams, "&#38;") &#62; 0 Then
     findAmp = InStr(remainParams, "&#38;") + 1          ' in the remaining string, find the index of the &#38;
     remainParams = Mid(remainParams, findAmp, Len(myCell) - findAmp + 1) ' lose the &#38; and everything before
Else
     remainParams = "" 'if no ampersand, ditch the rest
End If 

Otherwise, if the value of the final query parameter contains a '=', then you'll get garbage included in your list

2. Change

myNewString = Mid(myCell, findQuestion, 100)

to

myNewString = Mid(myCell, findQuestion, Len(myCell) - findQuestion + 1)

as well as similar fixes in two other locations. This gives you the whole string rather than chopping it off at 100.

3. Your current method looks like it was intended to find a max of 10 query parameters per unique pageview. This is fine, but the current execution will only allow 7 total and leave a bit of a mess if there's more. All 10 columns should be taken care of.

4. You can rewrite your code so that instead of deleting each duplicate query parameter as you come to it, you keep a running list of all the ones you need to delete and then delete the lot of them at the end. I rewrote the end this way and was able to cut runtime down to a couple of seconds at most. 

Just a few things I thought I'd point out to you. You had a lot of things in your code that I'll want to start using in my own macros, so I thought I'd return the favor :)

Thanks for referencing my blog article as well :)</description>
		<content:encoded><![CDATA[<p>I was able to get a hold of the source code for your macro. Everything looked pretty good, but there were a few things I might change:</p>
<p>1. Change</p>
<p>If InStr(remainParams, &#8220;&amp;&#8221;) &gt; 0 Then<br />
     findAmp = InStr(remainParams, &#8220;&amp;&#8221;) + 1          &#8216; in the remaining string, find the index of the &amp;<br />
     remainParams = Mid(remainParams, findAmp, Len(myCell) - findAmp + 1) &#8216; lose the &amp; and everything before<br />
End If</p>
<p>to</p>
<p>If InStr(remainParams, &#8220;&amp;&#8221;) &gt; 0 Then<br />
     findAmp = InStr(remainParams, &#8220;&amp;&#8221;) + 1          &#8216; in the remaining string, find the index of the &amp;<br />
     remainParams = Mid(remainParams, findAmp, Len(myCell) - findAmp + 1) &#8216; lose the &amp; and everything before<br />
Else<br />
     remainParams = &#8220;&#8221; &#8216;if no ampersand, ditch the rest<br />
End If </p>
<p>Otherwise, if the value of the final query parameter contains a &#8216;=&#8217;, then you&#8217;ll get garbage included in your list</p>
<p>2. Change</p>
<p>myNewString = Mid(myCell, findQuestion, 100)</p>
<p>to</p>
<p>myNewString = Mid(myCell, findQuestion, Len(myCell) - findQuestion + 1)</p>
<p>as well as similar fixes in two other locations. This gives you the whole string rather than chopping it off at 100.</p>
<p>3. Your current method looks like it was intended to find a max of 10 query parameters per unique pageview. This is fine, but the current execution will only allow 7 total and leave a bit of a mess if there&#8217;s more. All 10 columns should be taken care of.</p>
<p>4. You can rewrite your code so that instead of deleting each duplicate query parameter as you come to it, you keep a running list of all the ones you need to delete and then delete the lot of them at the end. I rewrote the end this way and was able to cut runtime down to a couple of seconds at most. </p>
<p>Just a few things I thought I&#8217;d point out to you. You had a lot of things in your code that I&#8217;ll want to start using in my own macros, so I thought I&#8217;d return the favor <img src='http://www.lunametrics.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for referencing my blog article as well <img src='http://www.lunametrics.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Aube</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1037</link>
		<dc:creator>Jeremy Aube</dc:creator>
		<pubDate>Wed, 19 Dec 2007 16:50:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1037</guid>
		<description>I was hoping to get a look at the source code of your macro, but for some reason it's not letting me download it.

At any rate, it looks like you could eliminate step 3 of your procedure by including it in the macro. Other than that, it sounds like an excellent tool.</description>
		<content:encoded><![CDATA[<p>I was hoping to get a look at the source code of your macro, but for some reason it&#8217;s not letting me download it.</p>
<p>At any rate, it looks like you could eliminate step 3 of your procedure by including it in the macro. Other than that, it sounds like an excellent tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Palmer</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1036</link>
		<dc:creator>Guy Palmer</dc:creator>
		<pubDate>Wed, 19 Dec 2007 01:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1036</guid>
		<description>Jason,

When you add &#38;limit=X to the URL, it only shows 10 results on the page but the export (at least the csv export - which is the one that I use) becomes X rows.</description>
		<content:encoded><![CDATA[<p>Jason,</p>
<p>When you add &amp;limit=X to the URL, it only shows 10 results on the page but the export (at least the csv export - which is the one that I use) becomes X rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Green</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1025</link>
		<dc:creator>Jason Green</dc:creator>
		<pubDate>Mon, 17 Dec 2007 16:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1025</guid>
		<description>Thanks Justin.  I'll work on a more universal solution soon.  :-)


Guy,

    Thanks for that tip.  However, I'm having trouble getting it to work.  When I add the parameter to the Top Content URL, the page goes back to showing 10 results.  Are there any other details we need in order to make this work?</description>
		<content:encoded><![CDATA[<p>Thanks Justin.  I&#8217;ll work on a more universal solution soon.  <img src='http://www.lunametrics.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Guy,</p>
<p>    Thanks for that tip.  However, I&#8217;m having trouble getting it to work.  When I add the parameter to the Top Content URL, the page goes back to showing 10 results.  Are there any other details we need in order to make this work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy Palmer</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1024</link>
		<dc:creator>Guy Palmer</dc:creator>
		<pubDate>Sun, 16 Dec 2007 18:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1024</guid>
		<description>"(Yes. Unfortunately, GA only exports the data being viewed.)"

Yes for info: if you add the parameter "&#38;limit=X" to the URL then GA will export X rows, up to many thousand.</description>
		<content:encoded><![CDATA[<p>&#8220;(Yes. Unfortunately, GA only exports the data being viewed.)&#8221;</p>
<p>Yes for info: if you add the parameter &#8220;&amp;limit=X&#8221; to the URL then GA will export X rows, up to many thousand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Cutroni</title>
		<link>http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1019</link>
		<dc:creator>Justin Cutroni</dc:creator>
		<pubDate>Thu, 13 Dec 2007 19:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.lunametrics.com/blog/2007/12/13/identify-query-parameters-with-google-analytics/#comment-1019</guid>
		<description>What, no support for MACS!

Great tool you you guys, thanks for sharing this with us.  As soon as I move back to Windows I'll start using it. :)

Justin</description>
		<content:encoded><![CDATA[<p>What, no support for MACS!</p>
<p>Great tool you you guys, thanks for sharing this with us.  As soon as I move back to Windows I&#8217;ll start using it. <img src='http://www.lunametrics.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Justin</p>
]]></content:encoded>
	</item>
</channel>
</rss>
