Skip to content

Instantly share code, notes, and snippets.

@LindaLawton
LindaLawton / Google Analytics PHP Sample ReadME
Last active November 19, 2020 11:26
Oauth example for PHP and the Google Analytics reporting api v4 with pagination.
For service account auth include:
require_once __DIR__ . '/ServiceAccount.php';
For Oauth2 include:
require_once __DIR__ . '/Oauth2Authentication.php';
Note: To reset the auth for oauth to just unset the sessions