2017 © Pedro Peláez
 

lithium-library li3_mixpanel

Lithium Mixpanel integration

image

keyteqlabs/li3_mixpanel

Lithium Mixpanel integration

  • Wednesday, April 3, 2013
  • by nervetattoo
  • Repository
  • 5 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

li3_mixpanel

Lithium library for sending statistical data to Mixpanel., (*1)

Installation

Composer

{
  "require" : {
    "KeyteqLabs/li3_mixpanel" : "*"
  }
}
composer.phar install

Submodule

Add a submodule to your li3 libraries:, (*2)

git submodule add git@github.com:KeyteqLabs/li3_mixpanel.git libraries/li3_mixpanel

Activate it

Add this to your app (config/bootstrap/libraries.php):, (*3)

<?php
Libraries::add('li3_mixpanel', array(
    'token' => $token
));

Filtering track calls by environment

Send the env key when adding the library to only enable one or a set of environments. Passing * means enabling it for every environment., (*4)

<?php
Libraries::add('li3_mixpanel', array(
    'token' => $token,
    'env' => array('production', 'staging')
));

Sending data

<?php
Mixpanel::track('api.requests', $params['request']->params);
// Track revenue
Mixpanel::transaction($userId, $sum);
// Track people by identifying the person
Mixpanel::set($userId, array(
    '$name' => $user->name,
    '$username' => $user->username
));

Credits

The Versions

03/04 2013

dev-master

9999999-dev

Lithium Mixpanel integration

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin library integration lithium li3 mixpanel

06/03 2013

v1.0

1.0.0.0

Lithium Mixpanel integration

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

plugin library integration lithium li3 mixpanel