Google Analytics code placement

Hi

I have searched but I am still a bit unclear as to where to place the code for Google Analytics.

Footer or Header?

Many thanks

Quote · 11 Nov 2015

In the footer.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 Nov 2015

Hi Newton27

I put the code in the base template _footer.html last night like this
and google are saying that tracking is not installed yet?

Is this right what I have done below?

       <bx_injection:injection_footer /><br />
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-69967708-1', 'auto');
  ga('send', 'pageview');

</script>
    </body>
</html>

Many thanks

Quote · 11 Nov 2015

What template are you using?

Did you make sure to clean your cache?

PM a site link to me if you like or right click on your page and "view source" and check the bottom of that for your tracking code, it should be there.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 Nov 2015

Hi

All of a sudden it has started working now?

Strange but as long as it is working Smile

Quote · 11 Nov 2015

 

All of a sudden it has started working now?

 Cool.. Cool

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 11 Nov 2015

maybe my free module is worth trying ... https://www.boonex.com/m/google-analytics

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 11 Nov 2015
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.