<?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: Get Google Analytics data in your CakePHP app</title>
	<atom:link href="http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/</link>
	<description>Learnings and Teachings on Web Application Development &#38; CakePHP</description>
	<lastBuildDate>Tue, 09 Mar 2010 23:55:11 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-7428</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Sat, 13 Feb 2010 09:43:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-7428</guid>
		<description>@Richard, thanks for your comment. I totally agree with you about modifying the core - it sucks - it also can break pagination on other parts of your application!

I have discussed the issue with Joel Perras on the core team, but no progress has been made as yet.

I&#039;ve been working on a few more plugins that consume REST APIs and have come up with a slick way of doing it that doesn&#039;t involve hacking the core. I&#039;ll be releasing them soon and then I&#039;ll refactor the GData plugin too. I&#039;ll be sure to check out your post and the LoadSys one again too. Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>@Richard, thanks for your comment. I totally agree with you about modifying the core &#8211; it sucks &#8211; it also can break pagination on other parts of your application!</p>
<p>I have discussed the issue with Joel Perras on the core team, but no progress has been made as yet.</p>
<p>I&#8217;ve been working on a few more plugins that consume REST APIs and have come up with a slick way of doing it that doesn&#8217;t involve hacking the core. I&#8217;ll be releasing them soon and then I&#8217;ll refactor the GData plugin too. I&#8217;ll be sure to check out your post and the LoadSys one again too. Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Willis-Owen</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-7418</link>
		<dc:creator>Richard Willis-Owen</dc:creator>
		<pubDate>Fri, 12 Feb 2010 10:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-7418</guid>
		<description>Very helpful - shame the current cake documentation has nothing to say about this.
I tried your approach and it worked fine, however I was uncomfortable with modifying the core to pass through page and limit. Indeed someone tried to raise this as a bug (http://cakephp.lighthouseapp.com/projects/42648/tickets/231-should-controllerpaginate-remove-fields-from-extra-array) but the cake team won&#039;t fix it.

Instead I&#039;ve tried the approach by loadsys (http://blog.loadsys.com/2009/06/19/cakephp-rss-feed-datasource/) where the code goes into the datasource instead of the model. With quite a lot of tweaking I&#039;ve got this to work with the twitter example from the the cake cookbook.

I&#039;ve blogged about it here: http://www.willis-owen.co.uk/wp/?p=81</description>
		<content:encoded><![CDATA[<p>Very helpful &#8211; shame the current cake documentation has nothing to say about this.<br />
I tried your approach and it worked fine, however I was uncomfortable with modifying the core to pass through page and limit. Indeed someone tried to raise this as a bug (<a href="http://cakephp.lighthouseapp.com/projects/42648/tickets/231-should-controllerpaginate-remove-fields-from-extra-array" rel="nofollow">http://cakephp.lighthouseapp.com/projects/42648/tickets/231-should-controllerpaginate-remove-fields-from-extra-array</a>) but the cake team won&#8217;t fix it.</p>
<p>Instead I&#8217;ve tried the approach by loadsys (<a href="http://blog.loadsys.com/2009/06/19/cakephp-rss-feed-datasource/" rel="nofollow">http://blog.loadsys.com/2009/06/19/cakephp-rss-feed-datasource/</a>) where the code goes into the datasource instead of the model. With quite a lot of tweaking I&#8217;ve got this to work with the twitter example from the the cake cookbook.</p>
<p>I&#8217;ve blogged about it here: <a href="http://www.willis-owen.co.uk/wp/?p=81" rel="nofollow">http://www.willis-owen.co.uk/wp/?p=81</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian D</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-6389</link>
		<dc:creator>Christian D</dc:creator>
		<pubDate>Mon, 07 Dec 2009 04:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-6389</guid>
		<description>Thanks for the explanation, this was helpful.</description>
		<content:encoded><![CDATA[<p>Thanks for the explanation, this was helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-6129</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Fri, 06 Nov 2009 21:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-6129</guid>
		<description>@nfofunky, I&#039;ve just downloaded 1.2.5, cloned my git repo, changed the Controller::paginate() code and added my email, password and profile id to the config and it worked fine... I can&#039;t think of any reason why it would not work for you unless for example you have used incorrect GA account details - you are using the 7 digit profile id not the the UA-XXXXX-X string aren&#039;t you? Or are you sure your machine can make socket connections? If all else fails, start debugging as you would normally to find out the bit in the code that is failing. Sorry can&#039;t be of more help.</description>
		<content:encoded><![CDATA[<p>@nfofunky, I&#8217;ve just downloaded 1.2.5, cloned my git repo, changed the Controller::paginate() code and added my email, password and profile id to the config and it worked fine&#8230; I can&#8217;t think of any reason why it would not work for you unless for example you have used incorrect GA account details &#8211; you are using the 7 digit profile id not the the UA-XXXXX-X string aren&#8217;t you? Or are you sure your machine can make socket connections? If all else fails, start debugging as you would normally to find out the bit in the code that is failing. Sorry can&#8217;t be of more help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nfojunky</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-6122</link>
		<dc:creator>nfojunky</dc:creator>
		<pubDate>Thu, 05 Nov 2009 20:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-6122</guid>
		<description>I&#039;m having the same result as empe - out of the box. I installed the plugin, changed the paginate code, edited /config/gdata_config.php to my details, and I&#039;m getting:

Invalid combination, here&#039;s a list of valid combinations...

My GA account is working fine, and I tried testing out the php GA library, and I&#039;m getting data with that. 

I&#039;m using CakePHP 1.2.5, could there be a difference in versions?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having the same result as empe &#8211; out of the box. I installed the plugin, changed the paginate code, edited /config/gdata_config.php to my details, and I&#8217;m getting:</p>
<p>Invalid combination, here&#8217;s a list of valid combinations&#8230;</p>
<p>My GA account is working fine, and I tried testing out the php GA library, and I&#8217;m getting data with that. </p>
<p>I&#8217;m using CakePHP 1.2.5, could there be a difference in versions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Crookes</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-6107</link>
		<dc:creator>Neil Crookes</dc:creator>
		<pubDate>Wed, 04 Nov 2009 10:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-6107</guid>
		<description>@empe, that message is displayed if $results == false. It probably should be a bit more explicit than that I guess. Anyway, you need to find out what is causing the call to the paginate method in the controller to return false. I&#039;m not sure off the top of my head what this could be I&#039;m afraid. Could it be something to do with your GA Account? Try turning debug up to 2 to see what the errors are?</description>
		<content:encoded><![CDATA[<p>@empe, that message is displayed if $results == false. It probably should be a bit more explicit than that I guess. Anyway, you need to find out what is causing the call to the paginate method in the controller to return false. I&#8217;m not sure off the top of my head what this could be I&#8217;m afraid. Could it be something to do with your GA Account? Try turning debug up to 2 to see what the errors are?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: empe</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-6105</link>
		<dc:creator>empe</dc:creator>
		<pubDate>Wed, 04 Nov 2009 07:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-6105</guid>
		<description>why am i always getting invalid combinations :(

please check http://ebook.orangerdigiart.com/gdata/analytics/</description>
		<content:encoded><![CDATA[<p>why am i always getting invalid combinations :(</p>
<p>please check <a href="http://ebook.orangerdigiart.com/gdata/analytics/" rel="nofollow">http://ebook.orangerdigiart.com/gdata/analytics/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-10-24 &#171; undefined</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-5990</link>
		<dc:creator>links for 2009-10-24 &#171; undefined</dc:creator>
		<pubDate>Sat, 24 Oct 2009 12:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-5990</guid>
		<description>[...] Neil Crookes » Get Google Analytics data in your CakePHP app (tags: google api analytics cakephp)   Possibly related posts: (automatically generated)links for 2009-10-13links for 2009-07-22All Cakephp (Indonesian server) [...]</description>
		<content:encoded><![CDATA[<p>[...] Neil Crookes » Get Google Analytics data in your CakePHP app (tags: google api analytics cakephp)   Possibly related posts: (automatically generated)links for 2009-10-13links for 2009-07-22All Cakephp (Indonesian server) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CakePHP Digest #21 – Whose Left? &#124; PseudoCoder.com</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-5984</link>
		<dc:creator>CakePHP Digest #21 – Whose Left? &#124; PseudoCoder.com</dc:creator>
		<pubDate>Fri, 23 Oct 2009 12:56:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-5984</guid>
		<description>[...] Neil Crookes rocks it once again with his Google Analytics plugin. [...]</description>
		<content:encoded><![CDATA[<p>[...] Neil Crookes rocks it once again with his Google Analytics plugin. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran Iglesias</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-5690</link>
		<dc:creator>Fran Iglesias</dc:creator>
		<pubDate>Tue, 29 Sep 2009 08:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-5690</guid>
		<description>A very, very, very big, thank you.

I needed a simple way to authenticate users vs. Google Apps and I&#039;ve got it with your datasources. I&#039;ve just tried it and works very well. In fact, I only need to check that Google Apps aknowledge user credentials.

I&#039;m writing an intranet application for the school I work for, and we have our email, calendar, etc. services hosted by Google Apps Edu Edition. So I wanted users to use the same username/password to authenticate in intranet. I need to work a bit on the subject but the basics are provided by your good work.</description>
		<content:encoded><![CDATA[<p>A very, very, very big, thank you.</p>
<p>I needed a simple way to authenticate users vs. Google Apps and I&#8217;ve got it with your datasources. I&#8217;ve just tried it and works very well. In fact, I only need to check that Google Apps aknowledge user credentials.</p>
<p>I&#8217;m writing an intranet application for the school I work for, and we have our email, calendar, etc. services hosted by Google Apps Edu Edition. So I wanted users to use the same username/password to authenticate in intranet. I need to work a bit on the subject but the basics are provided by your good work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
