Skip to content

Instantly share code, notes, and snippets.

View jmillikan's full-sized avatar

Jesse Millikan jmillikan

  • Indianapolis, Indiana
View GitHub Profile
import base64
from django.utils import simplejson
import urllib
from google.appengine.api import urlfetch
def track(event, properties=None):
"""
A simple function for asynchronously logging to the mixpanel.com API on App Engine
(Python) using RPC URL Fetch object.
@param event: The overall event/category you would like to log this data under