Keywords Tracking

Some of the Web Statistics sites offer the stats on the keywords, which users used to access the site.

Here are some of the examples:

####################################################
http://www.web-stat.com/ENGLISH/CGI-BIN/list_keywords_db.cgi?user=dem0O5634
# --------------
http://www.extreme-dm.com/tracking/sample/reports/dj/nph-ref2.cgi?tag=example
Where "All Keywords" Tracking;
# --------------
http://www.webstat.com/demo.php
And click on the left "KeyWords"
# --------------
####################################################

The basic requirement for the above service is to put a simple code on the web page, which basically would execute some cgi script off the Statistics server when the user opens a page. Sort of a banner or a counter.

I would like to be able to create a script, which would collect the keywords information users used to put into the search angine to access my site.

Does anyone have any example or suggestion to make this?

Thanks.
LVL 6
sstoukAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Computer101Connect With a Mentor Commented:
PAQed, with points refunded (300)

Computer101
E-E Admin
0
 
sstoukAuthor Commented:
I found an answer myself.
Here's a Java script which I grabbed from one of the web pages.
When I put it on my web pages it sends the collected information, including the referrer.

Referrer information includes the whole address of the web page, including keywords, which were in the address.

By separating generally known keywords of the major Search engines I am able to extract the necessary market information.

Have a look at the working model, which I built, at my site

http://www.stouk.com/cgi-bin/stats/1002/reports/2002/07Index.htm

Here's an example of the JavaScript code:

<!--//
u="http://www.stouk.com/cgi-bin/stats/stats.cgi?id=1002";
d=document;
nv=navigator;
na=nv.appName;
p=0;
j="N";
d.cookie="b=b";
c=0;
bv=Math.round(parseFloat(nv.appVersion)*100);
if (d.cookie) c=1;
n=(na.substring(0,2)=="Mi")?0:1;
rn=Math.random();
z="p="+p+"&rn="+rn+"&c="+c+"&tl=0&ls=0&ln=0";
if(self!=top) {fr=1;} else {fr=0;}
sl="1.0";//-->
</script>

<script language="javascript1.1">
<!--//
pl="";
sl="1.1";
j = (navigator.javaEnabled()?"Y":"N");
//--></script>

<script language=javascript1.2><!--//
sl="1.2";
s=screen;
px=(n==0)?s.colorDepth:s.pixelDepth;
z+="&wh="+s.width+'x'+s.height+"&px="+px;
//--></script>
<script language=javascript1.3>
<!--//
sl="1.3";
//-->
</script>

<script language="javascript"><!--//
y="";
y+="<img src=http://www.stouk.com/cgi-bin/stats/stats.cgi?id=1002;"+z+"&j="+j+"&sl="+sl+"&r="+escape(d.referrer)+"&fr="+fr+"&pg="+escape(window.location.href);
y+="' border=0 width=1 height=1 alt='Stouk Log'>";
d.write(y);
if(!n) { d.write("<"+"!--"); }//--></script>

0
 
DanRollinsCommented:
Hi sstouk,
<Edited by SpideyMod>
An erroneous auto-delete was posted, we have corrected the problem.  Please indicate recommendations and these will not be scheduled for auto-delete, but will be finalized within the standard week notice.

A recommendation of "PAQ with refund" has already been proposed.

CleanupGuy -- EE database cleanup volunteer
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
sstoukAuthor Commented:
I am not sure what you are asking here.
I asked the question, continued working on it's resolution myself, found solution and delivered it to the community.
I would like to delete the question and get my points back.
I am not sure what you mean by "erroneous auto-delete was posted" or "scheduled for auto-delete" or "finalized within the standard week notice." I am not familiar with these concepts or procedures.
Either explain or do what you need to do to clean this up.
I appriciate your help.
Respectfully.
0
 
DanRollinsCommented:
This question will be saved into "PAQ" (EE question database) and your points will be refunded.

Sorry for the confusion.
-- Dan
0
 
inq123Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ/Refund

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

inq123
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.