How insert the google analytics into inStyle template

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed May 14, 2014 5:09 am
Reply with quote
Report this post
hello
how insert code google analytics?
<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-50796297-1', 'gabinetesgamer.mx');
ga('send', 'pageview');

</script>

:dry:
regards
User avatar
Junior Boarder

GK User
Wed May 14, 2014 6:39 am
Reply with quote
Report this post
Hi,
if you are using classic Google Analytics code just insert UA-xxx code in template settings,
if GA Universal beta code you have to do some more steps.

Please follow this guide --> http://www.gavick.com/documentation/gen ... in-joomla/
User avatar
Platinum Boarder

GK User
Wed May 14, 2014 1:25 pm
Reply with quote
Report this post
Hello Pawel
need custom code for demographics

<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-XXXXXX-XX', 'example.com');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>

:blush:
User avatar
Junior Boarder

GK User
Wed May 14, 2014 6:11 pm
Reply with quote
Report this post
exactly, use this same manual -- so you have to use plugin which allows you to add custom code, I wrote about it also.
User avatar
Platinum Boarder


cron