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:
OUTSIDE LINKS TO SHOW SHOPPING CART????????? (1998)
I have troubles to send message out (1998)
Nested tags count question (1997)
[protect] (1998)
MacAuthorize Hub/Client and program linking (1997)
WebCat2 several catalogs? (1997)
Searching an Email database (1997)
Wireless WebDNA available today! (2000)
switching users (1998)
[WebDNA] MD5 Hash issue (2009)
Shopping Cart - prices? (1997)
Special delete ... (1997)
MacAuthorize order data fields WAS:How To question... (1997)
Multiple catalog databases and showcart (1997)
Error Template (1999)
lineitem variables (1999)
search zip codes ranges (2003)
(1997)
Can GMT be called from the OS ? (2004)
WebCatalog for guestbook ? (1997)