servicerunner / li3_kissmetrics
Simple Kissmetrics integration for Lithium
Installs: 1 076
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Type:lithium-library
Requires
- composer/installers: *
- kissmetrics/kissmetrics: dev-master
This package is not auto-updated.
Last update: 2022-02-01 12:25:22 UTC
README
Simple Kissmetrics integration for Lithium.
Installation
Load li3_kissmetrics
by updating config/bootstrap/libraries.php
:
<?php // ... snip ... // Kissmetrics Libraries::add('li3_kissmetrics', array('key' => '-> INSERT API KEY <-'));
Overriding Options
By default, the log_dir
option for the KM
class is set for you.
If you need to override this value (or other options), update the bootstrap/libraries.php
:
<?php // ... snip ... // Kissmetrics Libraries::add('li3_kissmetrics', array( 'key' => '-> INSERT API KEY <-', 'options' => array( 'log_dir' => '/tmp', 'use_cron' => false, 'to_stderr' => true, ), ));
Using CRON for Sending
Override the use_cron
option key (see above) to true
.
Then setup a cron job to execute this command: li3 kissmetrics sendLoggedQueries