<?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>Fri, 03 Feb 2012 19:44:06 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Neil Crookes &#8212; Several great CakePHP Plugins (high quality)! &#124; MKfmn &#124; Matt Kaufman</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-15151</link>
		<dc:creator>Neil Crookes &#8212; Several great CakePHP Plugins (high quality)! &#124; MKfmn &#124; Matt Kaufman</dc:creator>
		<pubDate>Sat, 23 Jul 2011 15:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-15151</guid>
		<description>[...] Get Google Analytics data in your CakePHP app [...]</description>
		<content:encoded><![CDATA[<p>[...] Get Google Analytics data in your CakePHP app [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arman</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-13806</link>
		<dc:creator>Arman</dc:creator>
		<pubDate>Mon, 30 May 2011 03:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-13806</guid>
		<description>it shows nothing. and i got following error
Notice (8): Undefined index:  Auth [APP/plugins/gdata/models/datasources/gdata_source.php, line 50]</description>
		<content:encoded><![CDATA[<p>it shows nothing. and i got following error<br />
Notice (8): Undefined index:  Auth [APP/plugins/gdata/models/datasources/gdata_source.php, line 50]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonardo Jorge</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-11326</link>
		<dc:creator>Leonardo Jorge</dc:creator>
		<pubDate>Thu, 10 Feb 2011 04:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-11326</guid>
		<description>Thanks neil for this plugin, its really easy.</description>
		<content:encoded><![CDATA[<p>Thanks neil for this plugin, its really easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jez Williams</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-11306</link>
		<dc:creator>Jez Williams</dc:creator>
		<pubDate>Tue, 08 Feb 2011 18:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-11306</guid>
		<description>Thanks @Neil, great plugin! I&#039;m getting the following errors when using the you_tube_videos controller: 

&quot;ConnectionManager::loadDataSource - Unable to import DataSource class .GdataYoutube&quot;

Any ideas anyone?! Thanks in advance</description>
		<content:encoded><![CDATA[<p>Thanks @Neil, great plugin! I&#8217;m getting the following errors when using the you_tube_videos controller: </p>
<p>&#8220;ConnectionManager::loadDataSource &#8211; Unable to import DataSource class .GdataYoutube&#8221;</p>
<p>Any ideas anyone?! Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-8533</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Fri, 14 May 2010 19:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-8533</guid>
		<description>I&#039;m getting the following error...

Notice (8): Undefined index:  Auth [APP\plugins\gdata\models\datasources\gdata_source.php, line 57]
Notice (8): Use of undefined constant ERROR_WARN - assumed &#039;ERROR_WARN&#039; [APP\plugins\gdata\models\datasources\gdata_source.php, line 58]
Warning (2): Invalid error type specified [APP\plugins\gdata\models\datasources\gdata_source.php, line 58]</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting the following error&#8230;</p>
<p>Notice (8): Undefined index:  Auth [APP\plugins\gdata\models\datasources\gdata_source.php, line 57]<br />
Notice (8): Use of undefined constant ERROR_WARN &#8211; assumed &#8216;ERROR_WARN&#8217; [APP\plugins\gdata\models\datasources\gdata_source.php, line 58]<br />
Warning (2): Invalid error type specified [APP\plugins\gdata\models\datasources\gdata_source.php, line 58]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arnoz</title>
		<link>http://www.neilcrookes.com/2009/09/27/get-google-analytics-data-in-your-cakephp/comment-page-1/#comment-8530</link>
		<dc:creator>arnoz</dc:creator>
		<pubDate>Fri, 14 May 2010 16:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.neilcrookes.com/?p=184#comment-8530</guid>
		<description>@Neil, that would be awesome ! (a untouched core solution to the paginate pb)</description>
		<content:encoded><![CDATA[<p>@Neil, that would be awesome ! (a untouched core solution to the paginate pb)</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-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>
</channel>
</rss>

