Google Analytics Help! It keeps adding code to the front end of my site

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
eahrenee
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Sep 18, 2018 4:33 pm

Google Analytics Help! It keeps adding code to the front end of my site

Post by eahrenee » Tue Sep 18, 2018 5:09 pm

I'm trying to add Google Analytics to a new web site - every time I add the code , it messes up the front end by adding code to the top of my page.
I am adding the Global Site Tracking Code (from google analytics) to the header of the the index.php file of my template...I have also tried to add it right before the </body> with similar results.
Is there any other way to get this to work?

Thanks!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44093
Joined: Sat Apr 05, 2008 9:58 pm

Re: Google Analytics Help! It keeps adding code to the front end of my site

Post by Webdongle » Tue Sep 18, 2018 5:16 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

nishithasagar
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Mar 27, 2017 6:05 am

Re: Google Analytics Help! It keeps adding code to the front end of my site

Post by nishithasagar » Wed Sep 19, 2018 9:35 am

You can add code in your body tag

reviewermo
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Sep 11, 2018 12:41 pm

Re: Google Analytics Help! It keeps adding code to the front end of my site

Post by reviewermo » Wed Sep 19, 2018 4:39 pm

you can add the code at the end of the body tag or use joomla extension search here https://extensions.joomla.org/ theres a lot of extension analytic there


Locked

Return to “General Questions/New to Joomla! 3.x”