lvengine / analytics
Fetch data from GA
1.0.0
2017-08-21 11:27 UTC
Requires
- php: >=5.4
- google/apiclient: ^2.0
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2025-07-06 07:52:53 UTC
README
This library is focused in a specific company problem. Not much use for other devs.
Credentials file, generated by google, is expected to be in the vendor folder. Feel free to relocate.
Usage example:
require_once __DIR__ . '/vendor/autoload.php'; use \Analytics\Ga; use \Analytics\Audience; use \Analytics\Conversion; use \Analytics\Behavior; $behavior_report = new Behavior(); $behavior_report->setViewId("XXXXXXXX"); $behavior_report->setDate("2017-08-01", "2017-08-07"); $output = $behavior_report->internalSearches();