Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Comment out mixpanel code; #686
Browse files Browse the repository at this point in the history
I accidentally added mixpanel code on the username branch (see #287 and
 #680) by creating that branch while on the mixpanel branch. Now the
username/id stuff is deployed and our app is looking for MIXPANEL_TOKEN,
but I'm not ready to send stuff to Mixpanel yet. This simply comments
out the mixpanel calls I had added so far.
  • Loading branch information
chadwhitacre committed Apr 7, 2013
1 parent 2cba004 commit a43d206
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
<!-- start Mixpanel -->
<script type="text/javascript">
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"===e.location.protocol?"https:":"http:")+'//cdn.mxpnl.com/libs/mixpanel-2.2.min.js';f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!== typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a, e,d])};b.__SV=1.2}})(document,window.mixpanel||[]);
mixpanel.init("{{ website.mixpanel_token }}");
$(document).ready(function()
{
{% if not user.ANON %}mixpanel.identify("{{ user.id }}");{% end %}
});
// mixpanel.init("{{ website.mixpanel_token }}");
// $(document).ready(function()
// {
// {% if not user.ANON %}mixpanel.identify("{{ user.id }}");{% end %}
// });
</script>
<!-- end Mixpanel -->

Expand Down
12 changes: 6 additions & 6 deletions www/assets/%version/gittip.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,9 @@ Gittip.initTipButtons = function()
// Log to mixpanel.
var amount = $(this).text().replace('$', '');
var tippee = $(this).attr('tippee');
mixpanel.track( "Anonymous Tip Attempt"
, {"Amount": amount, "Tippee": tippee}
);
// mixpanel.track( "Anonymous Tip Attempt"
// , {"Amount": amount, "Tippee": tippee}
// );
});


Expand Down Expand Up @@ -672,9 +672,9 @@ Gittip.initTipButtons = function()
$('.total-giving').text(data['total_giving']);

// Log to mixpanel.
mixpanel.track( "Tip Success"
, {"Amount": amount, "Tippee": tippee}
);
// mixpanel.track( "Tip Success"
// , {"Amount": amount, "Tippee": tippee}
// );
});
});
};
Expand Down

0 comments on commit a43d206

Please sign in to comment.