Main Points

This page is under heavy testing. Don't expect it to make much sense at this point, but if you have any suggestions, we'd love to hear from you. For more information check out our explanation of the code.

View Analytics Data

A comparison of "original" data in the request vs. the modified data from the sanitization function.

  • Key / Value Pair: [first]: first Form string
  • Key / Value Pair: [HTTP_USER_AGENT]: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
  • Key / Value Pair: [HTTP_USER_AGENT Sanitized]: CCBot__slash__1.0 __Lparen__http__colon____slash____slash__www.commoncrawl.org__slash__bot.html__parenR__
  • Key / Value Pair: [URL]: /ECBeta/Testing/AspNet/CSharpProgramming/CSharp0702ParsingServerVariablesOutput.aspx
  • Key / Value Pair: [URL Sanitized]: __slash__ECBeta__slash__Testing__slash__AspNet__slash__CSharpProgramming__slash__CSharp0702ParsingServerVariablesOutput.aspx
  • Key / Value Pair: [HTTP_ACCEPT_LANGUAGE]: en-us,en;q=0.5
  • Key / Value Pair: [HTTP_ACCEPT_LANGUAGE Sanitized]: en-us,en__semicolon__q0.5
  • Key / Value Pair: [REMOTE_ADDR]: 38.107.179.223
  • Key / Value Pair: [REMOTE_ADDR Sanitized]: 38.107.179.223
  • Key / Value Pair: [REMOTE_HOST]: 38.107.179.223
  • Key / Value Pair: [REMOTE_HOST Sanitized]: 38.107.179.223
  • Key / Value Pair: [HTTP_ACCEPT]: text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  • Key / Value Pair: [HTTP_ACCEPT Sanitized]: text__slash__html,application__slash__xhtmlxml,text__slash__xml__semicolon__q0.9,text__slash__plain__semicolon__q0.8,image__slash__png,__slash____semicolon__q0.5
  • Key / Value Pair: [HTTP_ACCEPT_CHARSET]: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  • Key / Value Pair: [HTTP_ACCEPT_CHARSET Sanitized]: ISO-8859-1,utf-8__semicolon__q0.7,__semicolon__q0.7
  • Key / Value Pair: [HTTP_ACCEPT_ENCODING]: gzip
  • Key / Value Pair: [HTTP_ACCEPT_ENCODING Sanitized]: gzip
  • Key / Value Pair: [last]: last Form string

Using AnalyticsRequestValues

Now that I've implemented AnalyticsRequestValues, I have a more simplified and robust way of gathering the analytics data I want, passing it around the application, manipulating and parsing it, and storing / retrieving it from a DB.

  • Key / Value Pair: [ID]: 0
  • Key / Value Pair: [EcDateTime]: 2012/05/20 22:35:35
  • Key / Value Pair: [testString]: (OS: 0 Version:0)
  • Key / Value Pair: [HTTP_USER_AGENT]: CCBot__slash__1.0 __Lparen__http__colon____slash____slash__www.commoncrawl.org__slash__bot.html__parenR__
  • Key / Value Pair: [Browser Id]: 6
  • Key / Value Pair: [Browser Version]: 0
  • Key / Value Pair: [Mobile Browser]: False
  • Key / Value Pair: [OS Id]: 0
  • Key / Value Pair: [OS Version]: 0
  • Key / Value Pair: [URL]: __slash__ECBeta__slash__Testing__slash__AspNet__slash__CSharpProgramming__slash__CSharp0702ParsingServerVariablesOutput.aspx
  • Key / Value Pair: [HTTP_ACCEPT_LANGUAGE]: en-us,en__semicolon__q0.5
  • Key / Value Pair: [REMOTE_ADDR]: 38.107.179.223
  • Key / Value Pair: [REMOTE_HOST]: 38.107.179.223
  • Key / Value Pair: [HTTP_REFERER]: {Empty String}
  • Key / Value Pair: [HTTP_ACCEPT_CHARSET]: ISO-8859-1,utf-8__semicolon__q0.7,__semicolon__q0.7
  • Key / Value Pair: [HTTP_ACCEPT]: text__slash__html,application__slash__xhtmlxml,text__slash__xml__semicolon__q0.9,text__slash__plain__semicolon__q0.8,image__slash__png,__slash____semicolon__q0.5
  • Key / Value Pair: [HTTP_ACCEPT_ENCODING]: gzip

Testing Browser and OS Stats

It's great to be able to check my results for the browsers I use, but to have any faith in this, I need to be able to throw in a broad range of HTTP_USER_AGENT strings and get the correct results.

  • Key / Value Pair: [ID]: 0
  • Key / Value Pair: [EcDateTime]: 2012/05/20 22:35:35
  • Key / Value Pair: [testString]: Windows XP OS Version Id (15) Inside OS String (Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)) (OS: 0 Version:15)
  • Key / Value Pair: [HTTP_USER_AGENT]: Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)
  • Key / Value Pair: [Browser Id]: 3
  • Key / Value Pair: [Browser Version]: 0
  • Key / Value Pair: [Mobile Browser]: False
  • Key / Value Pair: [OS Id]: 0
  • Key / Value Pair: [OS Version]: 15
  • Key / Value Pair: [URL]: __slash__ECBeta__slash__Testing__slash__AspNet__slash__CSharpProgramming__slash__CSharp0702ParsingServerVariablesOutput.aspx
  • Key / Value Pair: [HTTP_ACCEPT_LANGUAGE]: en-us,en__semicolon__q0.5
  • Key / Value Pair: [REMOTE_ADDR]: 38.107.179.223
  • Key / Value Pair: [REMOTE_HOST]: 38.107.179.223
  • Key / Value Pair: [HTTP_REFERER]: {Empty String}
  • Key / Value Pair: [HTTP_ACCEPT_CHARSET]: ISO-8859-1,utf-8__semicolon__q0.7,__semicolon__q0.7
  • Key / Value Pair: [HTTP_ACCEPT]: text__slash__html,application__slash__xhtmlxml,text__slash__xml__semicolon__q0.9,text__slash__plain__semicolon__q0.8,image__slash__png,__slash____semicolon__q0.5
  • Key / Value Pair: [HTTP_ACCEPT_ENCODING]: gzip

Conclusion.