I need to customize the Google Analytics code tracking

Start-up Joomla template with amazing CSS3 animated icons, price tables and parallax effect background.
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
Fri Oct 11, 2013 3:09 pm
Reply with quote
Report this post
In https://support.google.com/analytics/answer/2444872?hl=en&utm_id=ad
Google Analtytics ask me to customize the code (To view reports of interest and demographic) :

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>


for the followings:

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://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>


how and where i can to change this?

Thanks Very Much.
Nibaldo
User avatar
Junior Boarder

GK User
Fri Oct 11, 2013 5:01 pm
Reply with quote
Report this post
Hi,
first you don't have to use our Google Analytics field in template configuration,
you can use different plugin or add this code inside template code at the bottom or top .

Just check this file: gk_simplicity\layouts\default.php
User avatar
Platinum Boarder


cron