mixpanel

MixPanel CakePHP Component

Just added a quick MixPanel CakePHP Component to enable serverside event tracking via the new Analytics startup MixPanel.  If you are looking to add real time analyics to your CakePHP app, it doesn’t get any easier than this.

Download at GitHub

  1. Drop the mixpanel.php file into your /app/controllers/components directory.
  2. Add ‘Mixpanel’ to the Components Array in the controller you’d like to use the component in:
    var $components = array('Mixpanel');
  3. Set MixPanel project token:
    $this->Mixpanel->token = "124124121fasdfas1212";
  4. Call event tracker:
    $this->Mixpanel->track("Test Event", 'param1'=>$value1, 'param2'=>$value2);
  5. Head over to your Mixpanel dashboard and watch the realtime magic happen.

Download at GitHub

How Does Mixpanel Compare to Google Analytics?

Originally answered on Quora: What does Mixpanel do that Google Analytics is incapable of doing?

External image

http://xkcd.com/208/

I’m answering this question from the perspective of a long time Mixpanel and Google Analytics customer. I use both of them concurrently in the development of a social game and have a fairly good understanding of the strengths and weaknesses of each tool. I’d summarize it this way: Google Analytics is the swiss army knife that can do almost anything (with some effort and a few regular expressions) while Mixpanel is a tool focused on visitor-level event engagement. As with many things in life, however, it’s not that simple. While I’ve used the API from both tools, I’m sharing an opinion based on experience with each of their web-based reporting interfaces. Click the link for my take on what Mixpanel does that Google Analytics can’t.

How Does Mixpanel Compare to Google Analytics?