Handy Browser Counter Tip
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11873
interpreted = N
texte = Hi all,I've just been playing with a WebDNA counter that keeps a list of all the different browser brands that hit your site, along with number of hits, and a record of what WebCatalog _thinks_ the HTML version level of that browser is. Here's the WebDNA:---- BrowserStats.inc -----[replace db=/Browsers.db&eqBrowserdata=[BrowserName]&append=T]Browser=[BrowserName]&NumHits=[math]numHits[/math]&LastHit=[date] [time]&HTMLVersion=[HTML1]1[/HTML1][HTML2]2[/HTML2][HTML3]3[/HTML3][/replace]-------------------------------- Browsers.db ----Browser
LastHitNumHitsHTMLVersion------------------------- BrowserList.tmpl ----Browser Name | Last Hit | # Hits | HTML Version |
[search db=/Browsers.db&neBrowserdata=0][foundItems][Browser] | [LastHit] | [NumHits] | [HTMLVersion] |
[/foundItems][/search]
---------------------Put these files into the root of your web server folder, and put[include BrowserStats.inc]into any .TMPL files you want to count towards those stats. Then link to /BrowserList.tmpl to see the stats!The HTMLVersion information is useful as new browsers come out: anything WebCatalog doesn't recognize in its Browser Info.txt file will show up as [HTML1], which is probably not what you want. So after a few days of operation, take a peek at the report and use it to tweak your Browser Info.txt file.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
|
- Handy Browser Counter Tip (Grant Hulbert 1997)
|
Hi all,I've just been playing with a WebDNA counter that keeps a list of all the different browser brands that hit your site, along with number of hits, and a record of what WebCatalog _thinks_ the HTML version level of that browser is. Here's the WebDNA:---- BrowserStats.inc -----[math]numHits=[lookup db=/Browsers.db&lookInField=Browser&value=[browsername]&returnField=NumHits]+1[/math]>[replace db=/Browsers.db&eqBrowserdata=[browsername]&append=T]Browser=[browsername]&NumHits=[math]numHits[/math]&LastHit=[date] [time]&HTMLVersion=[HTML1]1[/HTML1][HTML2]2[/HTML2][HTML3]3[/HTML3][/replace]-------------------------------- Browsers.db ----BrowserLastHitNumHitsHTMLVersion------------------------- BrowserList.tmpl ----Browser Name | Last Hit | # Hits | HTML Version |
[search db=/Browsers.db&neBrowserdata=0][founditems][Browser] | [LastHit] | [NumHits] | [HTMLVersion] |
[/foundItems][/search]
---------------------Put these files into the root of your web server folder, and put[include BrowserStats.inc]into any .TMPL files you want to count towards those stats. Then link to /BrowserList.tmpl to see the stats!The HTMLVersion information is useful as new browsers come out: anything WebCatalog doesn't recognize in its Browser Info.txt file will show up as [HTML1], which is probably not what you want. So after a few days of operation, take a peek at the report and use it to tweak your Browser Info.txt file.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
RE: [isfolder] and [filename] (1997)
[WebDNA] Page names changing (2010)
form data submission gets truncated (1997)
WebCatalog can't find database (1997)
Projects & Contractors (1997)
Bug alert! (1997)
BIG PROBLEMS with Checkboxes!!! (1998)
[Off] Netscape Display Problem (1998)
Re:Need help... (1997)
Off Topic: SNMP over TCP/IP (1998)
Opinion: [input] should be called [output] ... (1997)
WebDNA Developer Resource Center (2002)
Separate SSL Server (1997)
Fun with dates (1997)
Discounts (2002)
We have Proof (1997)
typo in docs (2000)
emailer setup (1997)
Protect vs Authenicate (1997)
upgrading (1997)