Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MixPanel Plugin for WordPress

tree: 2e2340462a

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 Readme.txt
Octocat-spinner-32 meta-box.php initial prototype hat's working for the homepage May 23, 2012
Octocat-spinner-32 mixpanel.php
Octocat-spinner-32 mixpaneljs.php
Octocat-spinner-32 page.php
README.md

MixPanel Plugin for WordPress.

To install the plugin, either upload the .zip file using the plugin installer in your wp-admin, or SFTP the files over to your wp-content/plugins/ directory.

Configuration Options

There are some variables that are necessary to make the plugin do it's thing.

  1. MIXPANEL_TOKEN: This is the token for your specific project.
  2. MIXPANEL_DEBUG: If your site is in development mode, you can turn this on and see debug messages in your Firebug Console
  3. MIXPANEL_SUBDOMAIN_COOKIE: Make this true if you have MixPanel on two sites with the same token. Like blog.domain.com, app.domain.com
 define('MIXPANEL_TOKEN','YOURMIXPANELTOKEN'); 
 define('MIXPANEL_DEBUG', true); 
 define('MIXPANEL_SUBDOMAIN_COOKIE',true); 

How does it work?

On every page in WordPress, you'll see an option panel for MixPanel Event Label. Whatever value you put in this label, will show up as an event in MixPanel.

Something went wrong with that request. Please try again.