MyBB Community Forums

Full Version: Sumbit "Google analytics" on mybb ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi .
to the point

how to sumbit Google analytics to mybb ?
this example script
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-X']);
  _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>

Help please .thanks Wink
You can put it in your headerinclude template.

Templates & Styles > Templates > Your Theme > Ungrouped Templates > headerinclude

Someone correct me if I'm wrong.
(2011-08-26, 10:18 PM)Alex C. Wrote: [ -> ]You can put it in your headerinclude template.

Templates & Styles > Templates > Your Theme > Ungrouped Templates > headerinclude

Someone correct me if I'm wrong.

That's right sir Smile

@fachrils
At my board, analytics forced the board to refresh every minute.
So I disabled it, cause it were annoying on writing posts and so on
(2011-08-26, 10:32 PM)Kapsonfire Wrote: [ -> ]
(2011-08-26, 10:18 PM)Alex C. Wrote: [ -> ]You can put it in your headerinclude template.

Templates & Styles > Templates > Your Theme > Ungrouped Templates > headerinclude

Someone correct me if I'm wrong.

refresh every minute ?
hey this good idea for statistic Big Grin

thanks sir , i try Big Grin
That's right sir Smile

@fachrils
At my board, analytics forced the board to refresh every minute.
So I disabled it, cause it were annoying on writing posts and so on