Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 659
  • Last Modified:

removing old Google Analytics from site

Hi there.  i just moved over a Joomla site to my server and need to remove the previous Google Analytics code that the previous developer had put in.  I logged into the Administrator -> Extensions -> Template Manager, then Edit HTML on the template and added in the new GA code but the old code was not in there.

I have no idea where he placed that code. I'm assuming he hard coded it into a file?

Here is the site:  http://blindsanddesignforless.com

The version Joomla is running is 1.5.26

Thanks for your help!
0
COwebmaster
Asked:
COwebmaster
  • 4
  • 3
1 Solution
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
It's at the bottom. You now have two

<script type="text/javascript">
 
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-41002353-1']);
  _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>


			<script type="text/javascript">
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
			</script>
			<script type="text/javascript">
			try {
			var pageTracker = _gat._getTracker("UA-20884212-1");
			pageTracker._trackPageview();
			} catch(err) {}</script>

Open in new window

0
 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I think you will loose your history, can't you get your old developer to make you an admin for that domain in GA, then just remove that person.   This way, you will keep your history.
0
 
COwebmasterAuthor Commented:
I'm not concerned about the history just removing that old code.  Do you where and in which php file i would need to look in to remove that old code?  or in administrator area?
0
Prepare for an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program curriculum features two internationally recognized certifications from the EC-Council at no additional time or cost.

 
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Just edit your template and remove the google. code. It will be at the bottom.  http://forum.joomla.org/viewtopic.php?t=404104

Look to make sure you keep/remove the correct code.  

getTracker("UA-20884212-1") vs UA-41002353-1']);

You will want to remove everything from <script> to </script> for that account.
0
 
COwebmasterAuthor Commented:
I logged into the Administrator -> Extensions -> Template Manager, then Edit HTML on the template and added in the new GA code but the old code was not in there.

Where else would it be?
0
 
webtechgalCommented:
What editor are you using?
0
 
COwebmasterAuthor Commented:
I see TinyMCE and JCE 1.5.5 in the dashboard.  how can i tell which one is being used?
0
 
COwebmasterAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get Certified for a Job in Cybersecurity

Want an exciting career in an emerging field? Earn your MS in Cybersecurity and get certified in ethical hacking or computer forensic investigation. WGU’s MSCSIA degree program was designed to meet the most recent U.S. Department of Homeland Security (DHS) and NSA guidelines.  

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now