This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/layouts/_ga.php
2013-11-13 15:21:28 -05:00

15 lines
576 B
PHP
Executable File

<script type="text/javascript">
window.google_analytics_uacct = '<?= CONFIG()->ga_tracking_id ?>';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?= CONFIG()->ga_tracking_id ?>']);
_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>