Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Create a Google Analytics Event from PHP
PHP
branch: master
Failed to load latest commit information.
src/There4/Analytics Update to PSR2 whitespace and minor documentation fix
.gitignore Migrate to composer for Packagist
README.md Update to PSR2 whitespace and minor documentation fix
composer.json

README.md

PHP Analytics Events

Create a Google Analytics Event from PHP

This is a small class to post Analytics events from PHP. This is useful for logging and event tracking.

<?php

use There4\Analytics\AnalyticsEvent;

// Record the download event in Analytics
$events = new AnalyticsEvent('UAxxxxxxx', 'example.com');
$events->trackEvent('resources', 'download', 'cli-latest');
Something went wrong with that request. Please try again.