Skip to content

Commit

Permalink
[minor] Added chartbeat analytics to articles page
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Aug 26, 2011
1 parent 9743ee0 commit ae39628
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions theme/article.html
Expand Up @@ -7,6 +7,9 @@
<div class="title">docs.nodejitsu.com </div>
</header>


<script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script>

<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

<div id="mask"></div>
Expand All @@ -30,3 +33,23 @@ <h1 class="title"></h1>

<!-- end generated content -->


<script type="text/javascript">
var _sf_async_config={uid:11119,domain:"docs.nodejitsu.com"};
(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>

0 comments on commit ae39628

Please sign in to comment.