Permalink
Browse files

forgot the actual committed page

  • Loading branch information...
1 parent d264483 commit 2e2340462a14bf8f5dbf30534b6fa63e5c3f61d6 Vid Luther committed May 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 page.php
View
@@ -14,6 +14,7 @@ class MixPanel {
static function get_post_event_label()
{
global $post;
+ hi;
return get_post_meta( $post->ID, 'mixpanel_event_label', true );
}
@@ -30,7 +31,8 @@ function insert_event()
return false;
}
echo "<script type='text/javascript'>
- mixpanel.track(\"$event_label\");
+ mixpanel.register_once({ 'first_referrer': document.referrer });
+ mixpanel.track(\"$event_label\", {'referrer': document.referrer });
</script> ";

0 comments on commit 2e23404

Please sign in to comment.