Getting Rid of SEO Detritus
Several months ago I hired an SEO which didn't work out. I am now left with their tracking code all over my Zen Cart. I really don't know how to get it off. Can you please tell me how to do that?
I have Homesite 5 and am pretty good with it if someone could tell me how to get the whole site loaded and then scrub with Homesite. I would appreciate it. Thanks.
I am running version 1.3.7 the site is http://www.possets.com I put it up on about 2007 and it has worked very very well ever since. A bit rusty on some of the things I did to get it working but I do have The Book (alas it says nothing about SEO's).
Re: Getting Rid of SEO Detritus
a good excuse to upgrade i would have thought?
Re: Getting Rid of SEO Detritus
Ah, my sweet Irish friend, would that solve my problems?
Re: Getting Rid of SEO Detritus
The tracking code looks to be in your footer file
I am assuming this is what you want to get rid of
Quote:
<script language="javascript" type="text/javascript">
var trackCid = 123236;
var trackTid = '';
</script>
<script type="text/javascript">
var proto = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + proto + "otracking.com/js/TrackingV2.js' type='text/javascript'%3E%3C/script%3E"));
</script>
you also have google analytics in there as well
Quote:
<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">
var pageTracker = _gat._getTracker("UA-12512869-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
Possibly the easiest way to find the correct file to edit would be to use the Developer tools in zencarts admin
Admin --> Tools --> Developer tools
to search for the string "TrackingV2.js", which will tell you what file its in.
basically put that string in the the very bottom box on that page, select all files from the drop down box next to it and then hit search, and it ashould tell you where the code is
Re: Getting Rid of SEO Detritus
couldn't garentee that upgrade would solve but hey it needs done anyway and some of procedures would be the same
Re: Getting Rid of SEO Detritus
Homesite is of no use to you.
PHP Files need to be edited using a plain text editor... you are not working with flat html in zencart. The HTML is "assembled" for each "browser page" on-the-fly - and it evaporates when a viewer clicks a link, or performs a function, and the PHP then assembles a new page which it sends to the browser. That one too will vanish forever when the viewer clicks a link.
Re: Getting Rid of SEO Detritus
I do need to upgrade and I have someone who is going to do it for me. I am the HTML person and she is the PHP person. I know that the upgrade is daunting and so does she so we put that off until after the holidays and Valentine's Day to devote the time to it that it needs.
I do a few tasks in Zen Cart like the actual updating of the shop and its look and I have learned quite a good deal about Zen Cart from doing and reading this forum. I am not totally innocent of PHP but not an expert in it.
This is the code I want to get rid of and it is in the footer of the page:
<!-- Begin Tracking Code -->
<script language="javascript" type="text/javascript">
var trackCid = 123236;
var trackTid = '';
</script>
<script type="text/javascript">
var proto = (("https:" == document.location.protocol)
? "https://" : "http://");
document.write(unescape("%3Cscript src='" + proto +
"otracking.com/js/TrackingV2.js' type='text/javascript'
%3E%3C/script%3E"));
</script>
The other stuff I put on myself and it's what I want to stay.
It's my Google Analytics and it works well for me.
Thanks so much for the thought on how to find it and the reminder
of the ephemeral nature of PHP. I will get on that today
and clean the site up. I do have text editors, and you can
do that with Homesite, too. But being reminded about
Developer Tools was good, sometimes I forget there
are such things available.
I do appreciate your help on this, your spending your
time to assist me and others.
Re: Getting Rid of SEO Detritus
Part of upgrading is doing a file compare, and this would show you if there are any other files that are different from stock, aside from the ones you have edited for your template.
Re: Getting Rid of SEO Detritus
The site is all clean now thanks to your good advice. Developers tools is a great part of the site. Like I said, we will be upgrading in the post Valentine future. Again, thanks to all.