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

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>
in template's index.php ( /templates/your_template_name/index.php ) before </head> tag.

see also: https://support.google.com/analytics/bi ... er=1008080





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support