Theme Support Forum
Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums
-
#12365
On May 23, 2012 at 2:59 pm
Trowfig, can I put Google Analytics on my site.I want to be to see where my traffic is coming from. What do you think?
Roger
#16959
On May 23, 2012 at 3:07 pm
There is already and Option to add Google Analytics to your site via Triton options page. Go to Appearance> Triton Options> Misc. and in the Google Analytics id Field, put your GA id.
#16960
On May 23, 2012 at 3:29 pm
#16961
On July 4, 2012 at 3:16 pm
Hi Towfig,
I have put my GA id in but my site doesn’t seem to be syncing up with my GA account. Is there something else I need to do to make sure they are synced?
Thanks
Joe
#16962
On July 4, 2012 at 3:17 pm
#16963
On July 4, 2012 at 3:36 pm
#16964
On July 4, 2012 at 6:43 pm
I just checked your site and the code is there. You can manually put your analytics code. Go to Appearance> Editor and select “footer.php” and find these lines:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '<?php echo $option['trt_ga_id'] ?>']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_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>
and replace them with your analytics code.
Hello! this is Towfiq, a passionate web developer from Bangladesh, building website templates for almost 4 years and sharing them with the world. Most of my designing/ programming skills are self taught. Providing free Wordpress themes to wordpress enthusiasts is another one of my passions.
When I am not building templates, I listen to music, read books, paint and travel.
x