Solved

Keywords Tracking

Posted on 2002-05-24
6
251 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Merge files & delete row based on criteria using Perl. 1 100
Filtering a file to table 9 99
syslog unix file 20 68
PERL - Find newest folder 12 113
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…
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now