Decibel Insight
Knowledgebase

Decibel Insight Tracking Code

The Decibel Insight tag should be added to every page of the property; either through a tag manager or directly within your website template.

Decibel Insight will collect from any page that the script has been implemented on, so if you are looking to only capture specific pages, you will need to ensure that the script is only present on these pages, again either directly within your website template or by using your tag manager rules.

The script loads asynchronously and is less than 30kb in size, so it won't slow down your website.

Your tracking code can be found at any time in the app by going to Settings > Tracking Code.

<html>
<head>

<!-- title and meta -->

<script type="text/javascript">
// <![CDATA[
(function(d,e,c,i,b,el,it) {
d._da_=d._da_||[];_da_.oldErr=d.onerror;_da_.err=[];
d.onerror=function(){_da_.err.push(arguments);
_da_.oldErr&&_da_.oldErr.apply(d,Array.prototype.slice.call(arguments));};
d.DecibelInsight=b;d[b]=d[b]||function(){(d[b].q=d[b].q||[]).push(arguments);};
el=e.createElement(c),it=e.getElementsByTagName(c)[0];
el.async=1;el.src=i;it.parentNode.insertBefore(el,it);
})(window,document,'script','//cdn.decibelinsight.net/i/XXX/YYY/di.js','decibelInsight');
// ]]>
</script>

<!-- additional scripts -->
</head> 

In the above example, XXX indicates your account ID and YYY indicates the property ID. These placeholders will contain numeric values, which can be found by going to Settings > Tracking Code.