Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
/ li3_kissmetrics Public archive

Simple Kissmetrics.com integration for Lithium

Notifications You must be signed in to change notification settings

leek/li3_kissmetrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

li3_kissmetrics

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

About

Simple Kissmetrics.com integration for Lithium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages