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 ---- BrowserLastHitNumHitsHTMLVersion ------------------------- BrowserList.tmpl ---- [search db=/Browsers.db&neBrowserdata=0] [foundItems] [/foundItems] [/search]
Browser NameLast Hit# HitsHTML Version
[Browser][LastHit][NumHits][HTMLVersion]
---------------------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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. 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 ---- [search db=/Browsers.db&neBrowserdata=0] [founditems] [/foundItems] [/search]
Browser NameLast Hit# HitsHTML Version
[Browser][LastHit][NumHits][HTMLVersion]
---------------------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 Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/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:

Mondo amounts of Mail [long] (1999) [WebDNA] WebDNA receiving numerous signal SIGSEGV then crashing (2016) WebTEN vs webSTAR (1998) Showing unopened cart (1997) search results through frames (2000) Store Builder, technical infos (1998) Emailer [cart] file names (1997) Merging databases (1997) keep W* in front applescript? (1998) [HIDEIF] inside [FOUNDITEM] (1997) Calculating multiple shipping... (1997) PCS Frames (1997) Deleting Orders (1997) Modify Database (1998) form data submission gets truncated (1997) can WC render sites out? (1997) New public beta available (1997) WebCatalog for guestbook ? (1997) Quick ShowIf question (1997) [WebDNA] Error 500 with SUMM=T (2017)