Google Analytics Tracking Code Error
- GK User
- Wed Apr 29, 2015 4:03 pm
I recently migrated from Joomla 2.5 - 3.X so I don't know if that is the reason for this happening. I am no longer getting any data to my Google Analytics account from my website.
I get the error on GA saying: Missing Tracking Code - Page ytown.org for property ytown.org is missing valid tracking code.
I have updated the Google Analytics plugin: http://extensions.joomla.org/extension/ ... -analytics
I am now trying to update/reinsert the tracking code in my website but I am not sure which file it should be in. Could someone tell me where this GA tracking code should go within the template files?
Thanks!
I get the error on GA saying: Missing Tracking Code - Page ytown.org for property ytown.org is missing valid tracking code.
I have updated the Google Analytics plugin: http://extensions.joomla.org/extension/ ... -analytics
I am now trying to update/reinsert the tracking code in my website but I am not sure which file it should be in. Could someone tell me where this GA tracking code should go within the template files?
Thanks!
-
- Junior Boarder
- GK User
- Wed Apr 29, 2015 6:52 pm
Could you please post an url to your site?
-
- Moderator
- GK User
- Wed Apr 29, 2015 7:52 pm
ytown.org
-
- Junior Boarder
- GK User
- Thu Apr 30, 2015 1:12 pm
You can set google tracking code via template settings. No other plugins are required.
From what I see currently you didn't setup code in template settings and mentioned plugin doesn't do anything (there is no google code in page sourcecode).
From what I see currently you didn't setup code in template settings and mentioned plugin doesn't do anything (there is no google code in page sourcecode).
-
- Moderator
- GK User
- Thu Apr 30, 2015 3:18 pm
Okay, right, I think it got deleted when I did the migration and had to reinstall the template.
Exactly where do I add the tracking code, which file?
Exactly where do I add the tracking code, which file?
-
- Junior Boarder
- GK User
- Thu Apr 30, 2015 3:37 pm
Not in file, in template settings, features section.
-
- Moderator
- GK User
- Thu Apr 30, 2015 4:24 pm
Hm, I disabled the plugin I installed.
I entered the tracking ID in the field under features in the template settings. I entered the tracking code in the field just below that. still not getting any data.
I entered the tracking ID in the field under features in the template settings. I entered the tracking code in the field just below that. still not getting any data.
-
- Junior Boarder
- GK User
- Mon May 04, 2015 4:43 pm
Are you using old google analytics or new universal analytics?
Could you please paste code generated by google here?
Could you please paste code generated by google here?
-
- Moderator
- GK User
- Wed May 06, 2015 4:41 pm
Not sure, I did do an update sometime in February.
<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-40892640-1', 'auto');
ga('send', 'pageview');
</script>
<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-40892640-1', 'auto');
ga('send', 'pageview');
</script>
-
- Junior Boarder
- GK User
- Fri May 08, 2015 4:00 pm
You can try to manually add this code according to this documentation:
https://www.gavick.com/documentation/un ... -in-joomla
https://www.gavick.com/documentation/un ... -in-joomla
-
- Moderator
- GK User
- Fri May 08, 2015 7:53 pm
Great! Thank you!
It does seem to be working now, I am getting data.
It does seem to be working now, I am getting data.
-
- Junior Boarder
- GK User
- Sat May 09, 2015 12:11 pm
Seems like I need to report to update our templates to be able to use new google analytics code.
-
- Moderator
12 posts
• Page 1 of 1