Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing / writing URL parameter

Status
Not open for further replies.

TheMojo

IS-IT--Management
May 22, 2002
6
US
I am trying to figure out how to handle tracking of my site visitors and have decided to do the following: in each link that I publish (either in emails or banner ads), I will add a ?[parameter] to the URL link so that I can track the source of the visit.

Now, where I need some help is what kind of scripting can I use in my index.htm file to handle parsing and recording this information into a flat file on the server. I want this flat file to be appeneded to every time someone comes to the website (so the script will append write to the file). Any suggestions or, better yet, sample source code that I can use for this???

Just to be clear, my idea is something like this:

link out on net:
As soon as someone comes to my site with this link, the script would retrieve the source parameter, add a date/time stamp, and add this line "optinmsg1, 05/23/2002 11:00 am[cr]" to a flat file on the server called "visitors.txt"

I hope one of you technical gurus can help this technically challenged entrepeneur... I also asked this question in the VBS area, is this possible to do in any of the scripting languages?
 
you cannot write to a flat file that reside on teh serever using javascript.
you need to ask in server side laguage forum (depending on which server side language your server supports) --------------------------------------------------
Goals are dreams with deadlines
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top