Alternative Site Integrations
This page details alternative options for implementing our tracking snippet to better fit your site's existing model for loading third-party JavaScript.
Using tag managers
Two snippet solution
Header snippet
<script type='text/javascript'>
(function() {
/** CONFIGURATION START **/
var _sf_async_config = window._sf_async_config = (window._sf_async_config || {});
_sf_async_config.uid = #####; //CHANGE THIS
_sf_async_config.domain = 'domain.com'; //CHANGE THIS
_sf_async_config.flickerControl = false;
_sf_async_config.useCanonical = true;
_sf_async_config.useCanonicalDomain = true;
/** CONFIGURATION END **/
})();
</script>
<script async src="//static.chartbeat.com/js/chartbeat_mab.js"></script>Body snippet
Loading our tag in the <body>
<body>GDPR & CCPA compliance
Implement cookieless tracking
IP Truncation
Legacy code snippet
Legacy code snippet (for reference only)
Next steps
Last updated
Was this helpful?