Q
|
I noticed that the extended property test method causes the page I call this method from to be loaded twice. This is OK but how can I adjust my stats so that the page hits in my stats program are not affected?
|
A
|
Calls to extended property test methods (such as GetExtPropertiesEx in ActiveX and GetExtendedBrowser in BH .NET) do in most cases issue a silent redirect back to the calling page as part of this test. Although this activity is transparent to the end user it will result in your stats program counting hits on this page to be increased.
To remove the extra hit from your web stats simply set up a filter to tell your stats program to ignore any web page requests that has "bhcp" in the query string.
Note that in future versions of the software this value is subject to change.
Also note that the bumping of the stats will only occur if you use a log file based analytics program. If you a solution like Google Analytics that uses an embeded JS file within your page to track stats, then extended property tests will not result in stats being bumped.
Just be sure that you are executing the extended property check as the first thing your page does and before any HTML and JS is sent to the browser (as is required in any event, even without consideration to stats).
|