vnphp/google-analytics

v0.1 2017-08-26 09:47 UTC

This package is auto-updated.

Last update: 2024-11-29 05:26:42 UTC


README

build status

Installation

composer require vnphp/google-analytics

Usage

<?php

use \Vnphp\GoogleAnalytics\CollectApi;
use \Vnphp\GoogleAnalytics\Model\CollectEvent;

$api = new CollectApi('UA-...');
$event = new CollectEvent('category', 'action', 'label');
$api->trackEvent($event);