PDA

View Full Version : script tracker



hemi
11-04-2009, 03:13 AM
hi,

i got a source code from google and i want to use it but there is a script in that
"i think it tracks our information"(not exactly sure). if i remove it my script it is not working.becoz there is ab.js in that url .

i downloaded that ab.js file seperately

can any one tell what exactly the bellow script is for if it is for tracking plz tell me how to avoid without disturbing my script


-------------------------------------------

<script type="text/javascript">
var Host = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + Host +
"abc.com/ab.js' type='text/javascript'%3E%3C/script%3E"));
</script>

------------------------------

vwphillips
11-04-2009, 11:59 AM
it writes to the document

<script src='https://ssl.abc.com/ab.js' type='text/javascript' ></script>
or
<script src='http://www.abc.com/ab.js' type='text/javascript' ></script>

dependent on the document.location.protocol

hemi
11-04-2009, 02:22 PM
it writes to the document

<script src='https://ssl.abc.com/ab.js' type='text/javascript' ></script>
or
<script src='http://www.abc.com/ab.js' type='text/javascript' ></script>

dependent on the document.location.protocol
tnku for ur post,

can u tell me how to avoid it doing and use that ab.js within my files(iam having that file)

when iam removing that script from my file my code is not exactly working

jscheuer1
11-04-2009, 05:01 PM
Just replace it with an external script tag that points to your copy of the script, ex:


<script type="text/javascript" src="ab.js"></script>

If the ab.js file isn't in the same folder as the page, include its path in the src attribute.