Embedded Google Analytics "Flair"?

Now that Google Analytics has an official API , are there any implementations of a small minimalistic "Flair", like a snippet showing a custom choice of statistics, say, for example, today and visitors of the week, or maybe a diagram or two - to embed in your own administration panels and server applications?

I am looking for options based on PHP very well; the ideal solution could work autonomously (without big dependencies), and for starters you just need to enter the API data / login data. Pure code and PHP 5 OOP will be a plus.

+12
javascript php google-analytics
Mar 03 '10 at 18:46
source share
4 answers

GAPI sound as if you need to.

GAPI (said "g, a, p, i") is the PHP5 interface for Google Analytics.

http://code.google.com/p/gapi-google-analytics-php-interface/

use it as follows:

$ga = new gapi('email@yourdomain.com','password'); $ga->requestReportData(145141242,array('browser','browserVersion'),array('pageviews','visits')); foreach($ga->getResults() as $result) { echo '<strong>'.$result.'</strong><br />'; echo 'Pageviews: ' . $result->getPageviews() . ' '; echo 'Visits: ' . $result->getVisits() . '<br />'; } echo '<p>Total pageviews: ' . $ga->getPageviews() . ' total visits: ' . $ga->getVisits() . '</p>'; 
+12
Mar 10 '10 at 12:00
source share

These are Joomla modules with php source:

  • jLabs Google Analytics Counter : "This simple Google Analytics counter is based on the WebResourcesDepot tutorial of the same name. Converted to the Joomla module for our beautiful community only. This counter is already equipped with different icon style colors similar to the FeedBurner or Follower Twitter counter, as you can see on the top blog sites. "

  • GAnalytics : "GAnalytics is the complete suite that brings your Google analytics data in the form of charts or lists to your joomla powered website."

The first one is based on this independent textbook:

  • FeedCount-like counter Google Analytics : "We will create a dynamic interface, like FeedCount, which can display the statistics of your site, for example, page views, visits, etc. (one or all) using PHP"

Which displays something like this:
ga counter http://img690.imageshack.us/img690/956/gacnt.png

+2
Mar 09 '10 at 19:07
source share

I developed a third-party service called embeddedanalytics . Uses API. You can define maps of all kinds, geographical maps of heat, and we have a simple widget showing key indicators for the month (visits, page views, bounce rate, etc.).

This is an ideal service for those who do not want to delve into the programming aspects of the API. Just define your chart and insert the code snippet where you want to display the chart / object.

+1
Jun 03 2018-11-11T00:
source share

I know that this is not Google Analytics (I donโ€™t yet know any full-featured integration libraries available for PHP, but you can bet they come), but if you are looking for something to integrate into the admin panel right now, always There is an Open Web Analytics library.

But the best choice for Google Analytics might just be creating what you need from scratch using the API. Most likely, you really only need a few charts and a few reports for the toolbar, and for full details you will need to go to analytics.google.com no matter what.

0
Mar 05 '10 at 23:16
source share



All Articles