PHP library for communication with Google Analytics.
Copy file GALibrary.php to your project folder.
Not remember to make require_once for use Class GALibrary.
$gaLibraray = new GALibrary('UA-XXXXXXXXX-X');
$gaLibraray->setAdminEmail('your@email.com')
->gaBuildHit('pageview', [
'title' => 'title your page',
'slug' => 'path to page from root'
]);