forked from gitblog-io/jekyll-bootstrap-for-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmixpanel
More file actions
8 lines (8 loc) · 828 Bytes
/
mixpanel
File metadata and controls
8 lines (8 loc) · 828 Bytes
1
2
3
4
5
6
7
8
{% if site.safe %}
<script type="text/javascript">var mpq=[];mpq.push(["init","aaf7fc10e3cb6b79093933ce07d8c54c"]);(function(){var b,a,e,d,c;b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=(document.location.protocol==="https:"?"https:":"http:")+"//api.mixpanel.com/site_media/js/api/mixpanel.js";a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a);e=function(f){return function(){mpq.push([f].concat(Array.prototype.slice.call(arguments,0)))}};d=["init","track","track_links","track_forms","register","register_once","identify","name_tag","set_config"];for(c=0;c<d.length;c++){mpq[d[c]]=e(d[c])}})();</script>
<script>
$("a").click(function(){
if (typeof mpq !== 'undefined') mpq.track("click", {"url": this.href, "text": $(this).text()});
})
</script>
{% endif %}