Solved

Keywords Tracking

Posted on 2002-05-24
6
250 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed, with points refunded (300)

Computer101
E-E Admin
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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 video discusses moving either the default database or any database to a new volume.

772 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

11 Experts available now in Live!

Get 1:1 Help Now