在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):erebusnz/gapi-google-analytics-php-interface开源软件地址(OpenSource Url):https://github.com/erebusnz/gapi-google-analytics-php-interface开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):GAPI now has OAuth2 supportGAPI is now at version 2.0 - This version has full OAuth2 and V3 authentication support. Development is complete on the Google Analytics filter control. You can now filter your results using a simple GAPI filter string, for example:
You can create simple query strings that represent the logic Google Analytics requires, but it is abstracted enough to be more readable and easier to work with. Download the latest gapi.class.php and try out the filter control with the example.filter.php. Read more about the GAPI Filter Control. Features:
GAPI (said 'g,a,p,i') is the Google Analytics PHP5 Interface. Need google analytics interface in your OO PHP5 project? You might be running symfony, zend framework, cakePHP and need a good object-oriented interface to get those stats. This class gives a good clean class based interface. Use is as simple as:
This project was inspired by the use of Doctrine and Propel ORM interfaces for PHP. Dealing with complex data should be easy! Access metrics and dimensions using magic get methodsWith GAPI, when data is returned from Google it is automatically converted into a native PHP object, with an interface to allow the 'get' the value of any dimesion or metric. For example, if you request the metric 'uniquePageviews' and the dimension 'pagePath' you can do the following:
Instructions for setting up a Google service account for use with GAPIGAPI (because now Google Analytics API only supports OAuth2) will require you to create a 'service account' and then download a .P12 file to upload to your application.
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论