Permalink
Browse files

chartbeat

  • Loading branch information...
1 parent 1ee0d53 commit bba30aefe2bdf2d019d3c418c346c31e2e264688 Justine Tunney committed Aug 9, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 occupywallst/templates/occupywallst/base.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
+ <script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>
{% load ows i18n l10n %}
{% get_current_language as LANGUAGE_CODE %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
@@ -142,5 +143,23 @@
{% endblock js_init %}
});
</script>
+ <script type="text/javascript">
+ var _sf_async_config = { uid: 39828, domain: 'occupywallst.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 bba30ae

Please sign in to comment.