Permalink
Browse files

added chartbeat code

  • Loading branch information...
1 parent dfc909e commit 1cbedf987a62dac1a4068bf99cb3bbe09b2bfd1d @palewire palewire committed Aug 18, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 project/templates/base.html
View
19 project/templates/base.html
@@ -1,6 +1,7 @@
<!doctype html>
<html lang="en">
<head>
+ <script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
<meta charset="utf-8" />
<title>{% block title %}PastPages{% endblock %}</title>
<meta name="Author" content="pastpages.org" />
@@ -160,5 +161,23 @@
</div>
</div>
{% endblock %}
+ <script type="text/javascript">
+ var _sf_async_config = { uid: 13068, domain: 'pastpages.org' };
+ (function() {
+ function loadChartbeat() {
+ window._sf_endpt = (new Date()).getTime();
+ var e = document.createElement('script');
+ e.setAttribute('language', 'javascript');
+ e.setAttribute('type', 'text/javascript');
+ e.setAttribute('src',
+ (("https:" == document.location.protocol) ? "https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/" : "http://static.chartbeat.com/") +
+ "js/chartbeat.js");
+ document.body.appendChild(e);
+ };
+ var oldonload = window.onload;
+ window.onload = (typeof window.onload != 'function') ?
+ loadChartbeat : function() { oldonload(); loadChartbeat(); };
+ })();
+ </script>
</body>
</html>

0 comments on commit 1cbedf9

Please sign in to comment.