lvengine / analytics
Fetch data from GA
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/lvengine/analytics
Requires
- php: >=5.4
- google/apiclient: ^2.0
Requires (Dev)
- phpunit/phpunit: 5.2.*
This package is not auto-updated.
Last update: 2025-12-21 10:13:23 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();