Solved

removing old Google Analytics from site

Posted on 2013-05-21
8
553 Views
Last Modified: 2016-02-24
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
Comment
Question by:COwebmaster
  • 4
  • 3
8 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39185395
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
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39185403
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
 

Author Comment

by:COwebmaster
ID: 39186086
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39186100
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
 

Author Comment

by:COwebmaster
ID: 39186110
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
 
LVL 4

Expert Comment

by:webtechgal
ID: 39194419
What editor are you using?
0
 

Author Comment

by:COwebmaster
ID: 39195578
I see TinyMCE and JCE 1.5.5 in the dashboard.  how can i tell which one is being used?
0
 

Author Closing Comment

by:COwebmaster
ID: 39245461
Thanks!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Configuring a checkbox in CSS and php 18 88
php extract($_REQUEST) 5 46
Can't find PHP files on account that has WordPress 3 25
Creating Functions in phpMyAdmin 8 11
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question