G
Giuseppe
I need to make a little software to know how many visitors see my websites,
and where they come from.
So I've added this code at the end of a webpage:
<!------- Begin Stat code ------------->
<script language="JavaScript">
var path = 'http://www.mysite.com/webform1.aspx';
document.write('<img height=1 width=1 border=0 src="');
document.write(path);
document.write('?referer=');
document.write(escape(document.referrer));
document.write('">');
</script>
<noscript>
<img height=0 width=0 src=path>
</noscript>
<!------- End Stat code ------------->
I have an asp.net page (webform1.aspx) that is executed by this script and
it records all the information I need.
I think everything is ok, but the page I want to count is on
www.geocities.com and it fills users webpages in frames to show advertising.
in my database it saves:
I think because for geocities "site/?20057" is my html page in wich I put
the javascript, and "site/" is the main page with javascript.
Am I right?
How can I record the real referrer?
Please help me...
and where they come from.
So I've added this code at the end of a webpage:
<!------- Begin Stat code ------------->
<script language="JavaScript">
var path = 'http://www.mysite.com/webform1.aspx';
document.write('<img height=1 width=1 border=0 src="');
document.write(path);
document.write('?referer=');
document.write(escape(document.referrer));
document.write('">');
</script>
<noscript>
<img height=0 width=0 src=path>
</noscript>
<!------- End Stat code ------------->
I have an asp.net page (webform1.aspx) that is executed by this script and
it records all the information I need.
I think everything is ok, but the page I want to count is on
www.geocities.com and it fills users webpages in frames to show advertising.
in my database it saves:
I think because for geocities "site/?20057" is my html page in wich I put
the javascript, and "site/" is the main page with javascript.
Am I right?
How can I record the real referrer?
Please help me...