Solved

Keywords Tracking

Posted on 2002-05-24
6
252 Views
Last Modified: 2010-03-05
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.
0
Comment
Question by:sstouk
6 Comments
 
LVL 6

Author Comment

by:sstouk
ID: 7178550
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
 
LVL 49

Expert Comment

by:DanRollins
ID: 8441845
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
 
LVL 6

Author Comment

by:sstouk
ID: 8446091
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

 
LVL 49

Expert Comment

by:DanRollins
ID: 8446734
This question will be saved into "PAQ" (EE question database) and your points will be refunded.

Sorry for the confusion.
-- Dan
0
 
LVL 8

Expert Comment

by:inq123
ID: 9512313
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9558114
PAQed, with points refunded (300)

Computer101
E-E Admin
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SIMPLE Perl Regex 1 162
perl split by | 2 103
git fat pull happens nothing in centos 6.3 python 2.6.6 33 221
Any syntax error for this clone.plscript 6 143
I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question