adding google tracking code - Joomla! Forum - community, help and support
i need add google code someplace such include file, header or footer code on pages. per attached screen shots see no place files in editor. please help.
put google analytics code in template's index.php ( /templates/your_template_name/index.php ) before </head> tag.
see also: https://support.google.com/analytics/bi ... er=1008080
code: select all
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setaccount', 'ua-xxxxx-y']);
_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>see also: https://support.google.com/analytics/bi ... er=1008080
Comments
Post a Comment