Skip to content

Instantly share code, notes, and snippets.

@himynameisjonas
Created May 12, 2012 15:03

Revisions

  1. himynameisjonas created this gist May 12, 2012.
    14 changes: 14 additions & 0 deletions tracker.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    <script type="text/javascript">
    var _trackr_config={domain:"google.com"};
    (function(){
    function loadChartbeat() {
    window._sf_endpt=(new Date()).getTime();
    var e = document.createElement('script');
    e.setAttribute('src',"//localhost:3000/trackr-local.js");
    document.body.appendChild(e);
    }
    var oldonload = window.onload;
    window.onload = (typeof window.onload != 'function') ?
    loadChartbeat : function() { oldonload(); loadChartbeat(); };
    })();
    </script>