GithubHelp home page GithubHelp logo

muhginanjar / zend_gdata_analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielmitd/zend_gdata_analytics

0.0 2.0 0.0 78 KB

Analytics Data Feeds for Zend_Framework

Home Page: http://framework.zend.com/wiki/display/ZFPROP/Zend_Gdata_Analytics+-+Daniel+Hartmann

zend_gdata_analytics's Introduction

Zend_Gdata_Analytics

An additonal Zend_GData component to query data from Analytics.

Example

$client = Zend_Gdata_ClientLogin::getHttpClient($email, $password, Zend_Gdata_Analytics::AUTH_SERVICE_NAME);
$service = new Zend_Gdata_Analytics($client);

$query = $service->newDataQuery()
  ->setProfileId($yourID)
  ->addMetric(Zend_Gdata_Analytics_DataQuery::METRIC_VISITS) 
  ->addDimension(Zend_Gdata_Analytics_DataQuery::DIMENSION_KEYWORD) 
  ->addSort(Zend_Gdata_Analytics_DataQuery::METRIC_VISITS, true)
  ->setStartDate('2006-01-01') 
  ->setEndDate('2011-07-13')
  ->setMaxResults(10000); 

$result = $service->getDataFeed($query); 

foreach($result as $row){
  /** … **/
}

More on the blog. Also take a look in the ZF1-Framework.

zend_gdata_analytics's People

Contributors

danielmitd avatar kostanos avatar

Watchers

James Cloos avatar Muhammad Ginanjar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.