Embeddable Google Analytics “Flair”?

前端 未结 4 489
暗喜
暗喜 2020-12-08 05:33

Now that Google Analytics has an official API, are there any implementations of a small, minimalistic \"Flair\" like snippet showing a customizable selection of stats, say f

相关标签:
4条回答
  • 2020-12-08 06:10

    I have developed a 3rd party service called embeddedanalytics. Uses the API. You can define charts of all sorts, geographical heat maps, and we have a simple widget giving key indicators for the month (visits, pageviews, bounce rate, etc).

    This is an ideal service for someone not wanting to get into the programming aspects of the API. Simply define your chart and embed a snippet of code where you want the chart/object to show.

    0 讨论(0)
  • 2020-12-08 06:13

    GAPI sound like what you need.

    GAPI (said 'g,a,p,i') is the Google Analytics PHP5 Interface.

    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>';
    
    0 讨论(0)
  • 2020-12-08 06:25

    These are Joomla modules with php source:

    • jLabs Google Analytics Counter:"This simple Google Analytics Counter is based on the WebResourcesDepot tutorial with the same title. And it's converted to Joomla module just for our lovely community. This counter already equipped with various color of badge styles similar with a FeedBurner's subcription counter or a Twitter Follower counter as seen in the top blog sites."

    • GAnalytics: "GAnalytics is a complete suite which brings your google analytics data in form of charts or lists to your joomla powered web site"

    The first one is based in this framework independent tutorial:

    • FeedCount-Like Google Analytics Counter: "We'll be creating a dynamic FeedCount-like interface that can display your website's statistics like pageviews, visits, etc. (one or all of them) using PHP"

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

    0 讨论(0)
  • 2020-12-08 06:25

    I know it's not Google Analytics (I don't know of any full-featured integration libraries available for PHP yet, but you can bet they're coming), but if you're looking for something to integrate into an admin panel right now, there's always the Open Web Analytics library.

    But your best bet for Google Analytics might be to just build what you need from scratch using the API. Chances are you really only need a handful of charts and a couple of reports for the dashboard, and for the full in-depth detail, you're going to have to go to analytics.google.com no matter what.

    0 讨论(0)
提交回复
热议问题