This is my first question on here so I hope I'm not breaking any rules, but I have a problem:
I have a site that uses an Adobe Site Catalyst for its online analytics. The suite supports tagging through JavaScript and when implemented, it looks something like this that is placed on http://www.mydomain.com
:
<script language="JavaScript" type="text/javascript">
s.channel="/my-tracking-tag/"
</script>`
The problem is that Google is reading this JavaScript and interpreting the s.channel
string as a relative location on my website and is crawling it. I then get a 404 error in Google Webmaster Tools saying that the URL http://www.mydomain.com/my-tracking-tag/
does not exist, and that it was linked to by the URL that the JavaScript tag code was on.
Is there any to avoid this behavior? I thought about adding URL with a 404 error to my robots.txt file but tracking campaigns are constantly updating and it would be burdensome to update the text file with the constantly updating tags. I also though about structuring the string in s.channel
as something like 's.channel= "/" + "my-tracking-tag" + "/"
but I'm not sure if that would due the trick, and would also require implementation guidelines to be developed for the future.