deimos/analytics

This package is abandoned and no longer maintained. No replacement package was suggested.

Deimos Analytics.

0.0.1 2017-03-17 13:29 UTC

This package is auto-updated.

Last update: 2023-08-13 20:46:52 UTC


README

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

<?php

use Deimos\Analytics\Analytics;

(new Analytics('UAxxxxxxx', 'project.deimos'))
    ->setResource('image.png')
    ->setAction('download')
    ->setLabel('nginx')
    ->track();