Skip to content

Instantly share code, notes, and snippets.

@jaydestro
Created July 11, 2014 16:23
Show Gist options
  • Save jaydestro/c0c2308dc68321a5e212 to your computer and use it in GitHub Desktop.
Save jaydestro/c0c2308dc68321a5e212 to your computer and use it in GitHub Desktop.
<!-- Chartbeat tracking -->
<script type='text/javascript'>
var _sf_async_config={};
/** CONFIGURATION START **/
_sf_async_config.uid = 43887;
_sf_async_config.domain = 'si.com';
_sf_async_config.useCanonical = true;
_sf_async_config.sections = 'NBA';
_sf_async_config.authors = 'LeBron James (as told to Lee Jenkins)';
/** CONFIGURATION END **/
(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', '//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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment