<?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: Google Analytics API Login Authentication with ColdFusion</title>
	<atom:link href="http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/</link>
	<description>my code snips</description>
	<lastBuildDate>Thu, 02 Feb 2012 01:32:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matt</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-2/#comment-1265</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 27 Apr 2010 08:58:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-1265</guid>
		<description>Cool ta -</description>
		<content:encoded><![CDATA[<p>Cool ta -</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-1257</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Fri, 23 Apr 2010 12:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-1257</guid>
		<description>@Matt
I updated the code so the date range will no longer be an issue.</description>
		<content:encoded><![CDATA[<p>@Matt<br />
I updated the code so the date range will no longer be an issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-1256</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 23 Apr 2010 01:49:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-1256</guid>
		<description>Hi Jen

Can you post an example of a script showing the page views and the top ten pages and their respective views?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Jen</p>
<p>Can you post an example of a script showing the page views and the top ten pages and their respective views?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-1255</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 23 Apr 2010 00:59:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-1255</guid>
		<description>How embarrassing – just notices the date ranges are hardcoded up to the date of the post – before my sites existed …  Sry</description>
		<content:encoded><![CDATA[<p>How embarrassing – just notices the date ranges are hardcoded up to the date of the post – before my sites existed …  Sry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-1254</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 23 Apr 2010 00:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-1254</guid>
		<description>Hi Jen

The code accesses my GA account great! I was going to be getting google to email the xml files of each account then get cf to read the emails (not so fun).

But, when I use the code - for each of my profiles I get:

Profile: www.MyDomain.com 0
Total pageviews: 0

I dumped the xml and get:
&lt;totalResults&gt;0&lt;/totalResults&gt; 
&lt;startIndex&gt;1&lt;/startIndex&gt; 
&lt;itemsPerPage&gt;0&lt;/itemsPerPage&gt; 

I&apos;ve checked in GA and the sites all have page view in the 100s.

Anyone else has this issue?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Jen</p>
<p>The code accesses my GA account great! I was going to be getting google to email the xml files of each account then get cf to read the emails (not so fun).</p>
<p>But, when I use the code &#8211; for each of my profiles I get:</p>
<p>Profile: <a href="http://www.MyDomain.com" rel="nofollow">http://www.MyDomain.com</a> 0<br />
Total pageviews: 0</p>
<p>I dumped the xml and get:<br />
&lt;totalResults&gt;0&lt;/totalResults&gt;<br />
&lt;startIndex&gt;1&lt;/startIndex&gt;<br />
&lt;itemsPerPage&gt;0&lt;/itemsPerPage&gt; </p>
<p>I&apos;ve checked in GA and the sites all have page view in the 100s.</p>
<p>Anyone else has this issue?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-864</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-864</guid>
		<description>@Diego
Great! Go for it. Good luck.</description>
		<content:encoded><![CDATA[<p>@Diego<br />
Great! Go for it. Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-863</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Tue, 24 Nov 2009 20:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-863</guid>
		<description>It can be done

http://everydayscripting.blogspot.com/2009/07/python-google-voice-revisited.html</description>
		<content:encoded><![CDATA[<p>It can be done</p>
<p><a href="http://everydayscripting.blogspot.com/2009/07/python-google-voice-revisited.html" rel="nofollow">http://everydayscripting.blogspot.com/2009/07/python-google-voice-revisited.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-862</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Tue, 24 Nov 2009 18:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-862</guid>
		<description>@Diego
Check Google&#039;s documentation for GrandCentral. I&#039;m not sure you can hit GrandCentral through an API yet. I don&#039;t see it on their list:
http://code.google.com/more/
If Google doesn&#039;t allow access to it through an API, you can&#039;t get to it.</description>
		<content:encoded><![CDATA[<p>@Diego<br />
Check Google&#8217;s documentation for GrandCentral. I&#8217;m not sure you can hit GrandCentral through an API yet. I don&#8217;t see it on their list:<br />
<a href="http://code.google.com/more/" rel="nofollow">http://code.google.com/more/</a><br />
If Google doesn&#8217;t allow access to it through an API, you can&#8217;t get to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-861</link>
		<dc:creator>Diego</dc:creator>
		<pubDate>Tue, 24 Nov 2009 18:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-861</guid>
		<description>I used your codes using grandcentral as the service name. It gave me the auth key but i was not able to login. any suggestions</description>
		<content:encoded><![CDATA[<p>I used your codes using grandcentral as the service name. It gave me the auth key but i was not able to login. any suggestions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.jensbits.com/2009/05/10/google-analytics-api-login-authentication-with-coldfusion/comment-page-1/#comment-821</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Thu, 01 Oct 2009 12:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.jensbits.com/?p=123#comment-821</guid>
		<description>@Jon
Loop through the entry nodes then loop the metrics and grab each dimension then each metric. Stick each dimension/metric combos in a structure and append that to an array. You can then loop through the resulting array of structures (returnArray in this example) and display at will. Just dump the returnArray to see what you have. Like so:
&lt;cfset var returnArray = ArrayNew(1) /&gt;
&lt;cfset var entryStruct = StructNew() /&gt;
&lt;cfset entryNodes = XmlSearch(statsXML, &#039;//entry/&#039;) /&gt;

 &lt;cfloop from=&quot;1&quot; to=&quot;#ArrayLen(entryNodes)#&quot; index=&quot;num&quot;&gt; 
    &lt;cfloop from=&quot;1&quot; to=&quot;#ArrayLen(entryNodes[num].metric)#&quot; index=&quot;i&quot;&gt;
      &lt;cfset &quot;entryStruct.#Mid(entryNodes[num].dimension.XmlAttributes[&quot;name&quot;],4,
Len(entryNodes[num].dimension.XmlAttributes[&quot;name&quot;]))#&quot; = entryNodes[num].dimension.XmlAttributes[&quot;value&quot;] /&gt;
      &lt;cfset &quot;entryStruct.#Mid(entryNodes[num].metric.XmlAttributes[&quot;name&quot;],4,
Len(entryNodes[num].metric.XmlAttributes[&quot;name&quot;]))#&quot; = entryNodes[num].metric.XmlAttributes[&quot;value&quot;] /&gt;
    &lt;/cfloop&gt;
&lt;cfset arrayAppend(returnArray,duplicate(entryStruct)) /&gt;
&lt;/cfloop&gt;

&lt;cfdump var=&quot;#returnArray#&quot;&gt;

I used the Mid function to strip off the &#039;ga:&#039; prefix on the dimensions and metrics.
</description>
		<content:encoded><![CDATA[<p>@Jon<br />
Loop through the entry nodes then loop the metrics and grab each dimension then each metric. Stick each dimension/metric combos in a structure and append that to an array. You can then loop through the resulting array of structures (returnArray in this example) and display at will. Just dump the returnArray to see what you have. Like so:<br />
&lt;cfset var returnArray = ArrayNew(1) /&gt;<br />
&lt;cfset var entryStruct = StructNew() /&gt;<br />
&lt;cfset entryNodes = XmlSearch(statsXML, &#8216;//entry/&#8217;) /&gt;</p>
<p> &lt;cfloop from=&#8221;1&#8243; to=&#8221;#ArrayLen(entryNodes)#&#8221; index=&#8221;num&#8221;&gt;<br />
    &lt;cfloop from=&#8221;1&#8243; to=&#8221;#ArrayLen(entryNodes[num].metric)#&#8221; index=&#8221;i&#8221;&gt;<br />
      &lt;cfset &#8220;entryStruct.#Mid(entryNodes[num].dimension.XmlAttributes["name"],4,<br />
Len(entryNodes[num].dimension.XmlAttributes["name"]))#&#8221; = entryNodes[num].dimension.XmlAttributes["value"] /&gt;<br />
      &lt;cfset &#8220;entryStruct.#Mid(entryNodes[num].metric.XmlAttributes["name"],4,<br />
Len(entryNodes[num].metric.XmlAttributes["name"]))#&#8221; = entryNodes[num].metric.XmlAttributes["value"] /&gt;<br />
    &lt;/cfloop&gt;<br />
&lt;cfset arrayAppend(returnArray,duplicate(entryStruct)) /&gt;<br />
&lt;/cfloop&gt;</p>
<p>&lt;cfdump var=&#8221;#returnArray#&#8221;&gt;</p>
<p>I used the Mid function to strip off the &#8216;ga:&#8217; prefix on the dimensions and metrics.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

