<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 00:11:32 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Sherif Ramadan: Web Analytics with PHP and Google Visualization: Made Simple]]></title>
      <guid>http://www.phpdeveloper.org/news/18918</guid>
      <link>http://www.phpdeveloper.org/news/18918</link>
      <description><![CDATA[<p>
in <a href="http://sheriframadan.com/2012/12/web-analytics-with-php-and-google-visualization-made-simple/">this new post</a> to his site <i>Sherif Ramadan</i> shares a method for visualizing your website's visitor data with the help of the <a href="https://developers.google.com/chart/interactive/docs/reference">Google Visualization APIs</a> and some geolocation.
</p>
<blockquote>
<p>
The web is a place where everyone is in your backyard. This can be both a blessing and a curse. How do you know where your website traffic is coming from and how much of it there is? [...] How was traffic led to your website in the first place and why? How long do people stick around and what do they like the most about your site? These are all some of the many questions you can answer with web analytic software, but the real question is why would you want to answer these questions at all and what's the best way to look at the answer?
</p>
<p>
[...] If we look at a heat map it's easier to spot where the majority of our visitors and traffic are coming from, geographically. It also helps us understand that people visiting a virtual space can, and will, be physically located in different parts of the world.
</p>
</blockquote>
<p>
He includes the steps to recreate a map like the one <a href="http://sheriframadan.com/examples/geodata.html">included in this page</a> showing the current view statistics on his site. He uses a MySQL backend to store the GeoIP data and parses out the Apache "access_log" to get the IPs of the visiting users. He then runs these against the GeoIP data and passes this country data on to Google's visualization for handling. He also recommends using the tools offered by the <a href="https://www.google.com/webmasters/tools/">Google Webmaster Tools</a> to further enhance your introspection into your site's visitors.
</p>]]></description>
      <pubDate>Wed, 19 Dec 2012 12:38:47 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: Zend Framework Google Analytics Code Generation]]></title>
      <guid>http://www.phpdeveloper.org/news/16764</guid>
      <link>http://www.phpdeveloper.org/news/16764</link>
      <description><![CDATA[<p>
<i>Martin Aarhof</i> has put together <a href="https://github.com/lsv/zf-maa_analytics">an handy tool</a> for Zend Framework applications that creates the async javascript analytic code recommended by Google to provide tracking information back to Analytics.
</p>
<blockquote>
It supports: browser Settings Detection, campaign Duration, campaign Fields (custom), cross-domain linking and last but not least Ecommerce tracking.
</blockquote>
<p>
The configuration lets you set the various keys for your Analytics accounts, the domain name for it to live under, browser detection settings and various other settings for <a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiCampaignTracking.html">campaign configuration</a> and <a href="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html">domain setup</a>. You can find the full code on <a href="https://github.com/lsv/zf-maa_analytics">his github account</a> ready to download or clone.
</p>]]></description>
      <pubDate>Wed, 24 Aug 2011 09:46:58 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: Google2Piwik - From Google Analytics to Piwik (Open Source Analytics)]]></title>
      <guid>http://www.phpdeveloper.org/news/15877</guid>
      <link>http://www.phpdeveloper.org/news/15877</link>
      <description><![CDATA[<p>
<i>Dominik Jendroszczyk</i> passed along a tip about a tool that's been released to help make transitioning from the proprietary Google Analytics systems over to the Piwik open source analytics option simple - <a href="http://clearcode.cc/2011/02/05/export-google-analytics-piwik-google2piwik/">Google2Piwik</a>.
</p>
<blockquote>
More and more users are turning away from Google Analytics (GA) as a provider of web measurement solutions on security, independence and functionality grounds. One problem they run into is that after years of using Google's product they have a considerable inventory of data about their websites stuck with GA, which makes starting over with an alternative provider something of a hassle. [...] Effectively, thanks to <a href="http://clearcode.cc/offer/open-source-projects/google2piwik/">Google2Piwik</a>, nothing is stopping you from moving away from Google Analytics to a safer, more robust and more functional alternative.
</blockquote>
<p>
The tool is written in Python, so you'll need to have that and both access to the Google API and have a Piwik install set up (it's PHP/MySQL based) to make the translation. There's a few limitations to the import, though, so be sure to check out the tool's <a href="http://clearcode.cc/offer/open-source-projects/google2piwik/">project page</a> for those. <a href="http://piwik.org/">Piwik</a> is an open source project that provides real-time web analytics that installs on your own server and gathers data via a Javascript tag embedded in your site.
</p>]]></description>
      <pubDate>Wed, 09 Feb 2011 09:15:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Retrieving Data from Google Analytics API using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/15557</guid>
      <link>http://www.phpdeveloper.org/news/15557</link>
      <description><![CDATA[<p>
<i>Lorna Mitchell</i> has <a href="http://www.lornajane.net/posts/2010/Retrieving-Data-from-Google-Analytics-API-using-PHP">a new post</a> to her blog continuing her look at using the Google Analytics API. This time the focus is on pulling data out of the API (if you're looking for connection advice, see her <a href="http://www.lornajane.net/posts/2010/Google-Analytics-Accounts-API">previous post</a>).
</p>
<blockquote>
Recently I started playing with the google analytics API, looking at ways to bring analytics onto dashboards and generate simple reports from the data in there. Very shortly after I started to look at the API, I had working data retrieval, so I thought I'd share my experiences (and code!). 
</blockquote>
<p>
She mentions the <a href="http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDataFeed.html">data reference document</a> you can use to find the methods to call for specifically what you want as well as a snippet of sample code to connect and pull data based on a set of "query data".
</p>]]></description>
      <pubDate>Thu, 09 Dec 2010 13:40:32 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Lorna Mitchell's Blog: Google Analytics Accounts API]]></title>
      <guid>http://www.phpdeveloper.org/news/15477</guid>
      <link>http://www.phpdeveloper.org/news/15477</link>
      <description><![CDATA[<p>
In <a href="http://www.lornajane.net/posts/2010/Google-Analytics-Accounts-API">this new post</a> to her blog <i>Lorna Mitchell</i> looks at some of the work she's done to extract information out of the Google Analytics accounts API via an OAuth interface and parsed via SimpleXML.
</p>
<blockquote>
I'm using <a href="http://pecl.php.net/package/oauth">pecl_oauth</a> to authenticate users against their google accounts (see my post about <a href="http://www.lornajane.net/posts/2010/Authenticating-with-OAuth-from-PHP">using OAuth from PHP</a>), but even after I have a valid google user, working out which analytics accounts they have access to and how to refer to them is a puzzle in itself, so I thought I'd share what I learned.
</blockquote>
<p>
In her example she shows how to fetch the permissions for a user (which analytics they can access) via a call to the "/feeds/datasources/ga/accounts" URL. This returns some XML easily parsed by <a href="http://php.net/simplexml">SimpleXML</a> to grab the accounts' names and IDs. This is used to fetch the profiles and gather the "magic tableId" for use with the <a href="http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDataFeed.html">Export API</a> to pull the actual data.
</p>]]></description>
      <pubDate>Tue, 23 Nov 2010 10:56:35 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Richard Thomas' Blog: Solar Framework Shorts - Future release looks promising]]></title>
      <guid>http://www.phpdeveloper.org/news/14816</guid>
      <link>http://www.phpdeveloper.org/news/14816</link>
      <description><![CDATA[<p>
<i>Richard Thomas</i> has a <a href="http://www.phpjack.com/content/solar-framework-shorts-future-release-looks-promising">quick new (Solar Framework) post</a> to his blog about some of the upcoming cool features of the framework.
</p>
<blockquote>
A lot of cool features are being hatched in branches that should hit trunk in the near future! [...] Things to look forward to are view helpers for various services like Google Analytics and the various CDN loaders although this is still under review and might be a few releases away.
</blockquote>
<p>
Other new features he mentions include a reworked authentication stack that will allow for more than one auth adapter to be used at one time (his example is a normal login and a Facebook login). To help, an auth module for Facebook will also be included to make this even easier.
</p>]]></description>
      <pubDate>Tue, 20 Jul 2010 08:35:02 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sameer Borate's Blog: Reading Google Analytics data from PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13960</guid>
      <link>http://www.phpdeveloper.org/news/13960</link>
      <description><![CDATA[<p>In a new post to his blog today <i>Sameer Borate</i> has <a href="http://www.codediesel.com/php/reading-google-analytics-data-from-php/">a tutorial</a> about linking your application to the Google Analytics backend and using the requestReportData method to pull back interesting statistics on your sites.
</p>
<blockquote>
Although no standard library is available from Google for PHP, some small and easy interfaces are available out there. In this post we will see how to access Google Analytics data using PHP using the GAPI library.
</blockquote>
<p>
The <a href="http://code.google.com/p/gapi-google-analytics-php-interface/">GAPI library</a> is an open sourced project that provides a direct, easy to use interface you can use to connect directly to the Analytics service without having to handle all of the manual stuff yourself. <i>Sameer</i> shows how to get information from the service like the top ten sources and visit counts, regional information and how to do some filtering on the results returned.
</p>]]></description>
      <pubDate>Wed, 03 Feb 2010 11:06:08 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ask About PHP Blog: Google Analytics API class for PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/12592</guid>
      <link>http://www.phpdeveloper.org/news/12592</link>
      <description><![CDATA[<p>
On the Ask About PHP blog today there's <a href="http://www.askaboutphp.com/tutorials/63/google-analytics-api-class-for-php.html">a new tutorial</a> (and a new class) helping you to connect your applications with the Google Analytics backend.
</p>
<blockquote>
I've been thinking about how I can make use of this API to enhance the sites I'm working on. But before kicking off ideas, I had to find out how to access and use the API. I finally came up with a PHP class that will do all the grunt work of calling the API, you just need to supply your report's parameter and the PHP class will return you an array of Analytics data.
</blockquote>
<p>
<a href="http://www.askaboutphp.com/wp-post-images/63/googleanalytics.class.zip">The class</a> [zip] makes connecting to the Analytics backend as easy as dropping in a username/password, defining which profile to use and the date range. The getReport() method does the hard work 
</p>]]></description>
      <pubDate>Fri, 29 May 2009 09:33:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Blue Parabola Blog: Magento Feature Analysis Series, Part 1: Analytics and Reporting]]></title>
      <guid>http://www.phpdeveloper.org/news/12530</guid>
      <link>http://www.phpdeveloper.org/news/12530</link>
      <description><![CDATA[<p>
On the Blue Parabola site <i>Matthew Turland</i> has <a href="http://blueparabola.com/blog/magento-feature-analysis-series-part-1-analytics-and-reporting">started a series</a> looking at a "new kid on the block" when it comes to PHP e-commerce applications - <a href="http://www.magentocommerce.com/">Magento</a>.
</p>
<blockquote>
<a href="http://www.magentocommerce.com/">Magento</a>, has gotten a good amount of attention leading up to and since its initial release. I was recently entasked with doing an analysis of its features and thought it might make for an interesting series of blog posts. This first one will cover the <a href="http://www.magentocommerce.com/product/features/analytics-and-reporting/view">Analytics and Reporting</a> feature set.
</blockquote>
<p>
He mentions the Administrator Action logging, the Google Analytics integration, the Admin Dashboard for reporting overview, included RSS feeds, Accounting Reports and Feedback reporting.
</p>]]></description>
      <pubDate>Mon, 18 May 2009 10:46:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Tiffany Brown's Blog: Collecting e-commerce conversion data with Zen Cart and Google Analytics]]></title>
      <guid>http://www.phpdeveloper.org/news/11983</guid>
      <link>http://www.phpdeveloper.org/news/11983</link>
      <description><![CDATA[<p>
<i>Tiffany Brown</i> has <A href="http://tiffanybbrown.com/2009/02/19/zen-cart-and-google-analytics/">a new post</a> today showing how you can gather some statistics about the (successful) use of your e-commerce Zen Cart website with the help of <a href="http://google.com/analytics">Google Analytics</a>.
</p>
<blockquote>
<a href="http://google.com/analytics">Google Analytics</a> allows you to collect pretty robust data about how users move through your e-commerce site. Here's how to make it work with <a href="http://www.zen-cart.com/">Zen Cart</a>, an open source shopping cart.
</blockquote>
<p>
You'll need to already have a Google Analytics account set up for the application, a Zen Cart instance installed and have at least a passing knowledge with using PHP and MySQL. There's two steps to the process - a creation of a custom functions file (code provided) and a modification to two other files (the checkout success page and global footer) to send additional information to the Analytics service.
</p>]]></description>
      <pubDate>Thu, 19 Feb 2009 11:18:38 -0600</pubDate>
    </item>
  </channel>
</rss>
