Integrate your Buto video statistics with your site’s Google Analytics
You can link Buto’s video player to publish view statistics, as well as advert clicks, impressions and closes, directly to your Google Analytics account.
To do this, you’ll need to add a tracking code to all pages in your site that use Google Analytics – if you already have the tracking code installed you may need to update to this newer version.
Make sure you replace the “ACCOUNT NUMBER HERE” with your actual Google Analytics account number (usually in the format UA-1234567-1), and the domain with your website domain.
Domains should follow the format: “.mysite.com” and not “http://www.mysite.com” to ensure statistics are tracked correctly.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'ACCOUNT NUMBER HERE']);
_gaq.push(['_setDomainName', '.mysite.com']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
Once you have installed the tracking code in the head of your page, ensure you use the “iFrame embed code” when embedding your Buto video. This ensures the Buto player can communicate with the tracking code of your site.
Lastly, to enable statistics tracking in the Buto player, ensure the settings file for your video has both the site domain, and the Google Analytics account number.
For any help with integrating Google Analytics, open a new support ticket in your Buto control panel.