Web analytics unique visitors go sky high website analysis report, unique IP address user

Source: Internet
Author: User

On a recent consultancy job, we were told that a certain site collection was used by a total group of 100 people. big was our surprise when we turned to the SharePoint 2010 web analytics feature and found the site collection had a total of around 1000 unique visitors per day. strange, no?

The definition of the total number of unique visitors per day can be found on the Microsoft Enterprise Content Management (ECM) Team blog: http://blogs.msdn.com/ B /ecm/archive/2010/05/03/web-analytics-in-sharepoint-2010-insights-into-reports-and-metrics.aspx:

Http://melwaer.blogspot.com/2011/04/web-analytics-in-sharepoint-2010.html

The total number of unique visitors per day consists of all SharePoint authenticated users plus anonymous users. In the last case, each unique IP address counts as a unique (anonymous) visitor.

Then, we saw something strange on one of our Dev machines. the total number of unique visitors/day on a given site collection was 7, whereas there is only one user account on this machine. so, 7 different unique visitors was impossible on this machine. were we on to something?

Intrigued, we took a look at the database. After doing some snooping around, we expected that the databaseWebanalyticsserviceapplication_reportingdb _ [guid]Is the database that holds the web analytics data.

After running a trace, we knew for sure. Executing the following table valued function returned the contents of our site Collection web analytics reports-summary page:

-Get info for site Collection web analytics reports-Summary
Exec sp_executesql n' select top (2000) [propertyname], [currentvalue], [previousvalue], [percentagechange]
From [DBO]. [fn_wa_getsummary] (@ P0, @ P1, @ P2, @ P3, default)
Order by [propertyname] ASC'
, N' @ P0 int, @ P1 int, @ P2 int, @ P3 uniqueidentifier ', @ p0 = 20111213, @ p1 = 20111113, @ P2 = 30, @ P3 = '9519cac1-F9AE-3BF8-D261-119A8B0A4F33 ′

Taking a look inside the function, we found the following T-SQL code being equivalent to the retrieval of unique visitors info:

-Get unique visitors info
Declare @ currentstartdateid Int = 20111213
Declare @ previusstartdateid Int = 20111113
Declare @ duration Int = 30
Declare @ aggregationid [DBO]. [aggregationiddatatype] = '9519cac1-F9AE-3BF8-D261-119A8B0A4F33 ′
Declare @ includesubsites bit = 1

Declare @ currentenddateid int, @ previousenddateid int
Set @ currentenddateid = [DBO]. [fn_wa_adddateid] (@ currentstartdateid, @ duration-1)
Set @ previusenddateid = [DBO]. [fn_wa_adddateid] (@ previousstartdateid, @ duration-1)

Select
'Uniquevisitor' as [propertyname],
(
Select [frequency]
From [DBO]. [fn_wa_gettotaltrafficvolume]
(@ Currentstartdateid, @ currentenddateid, @ aggregationid, @ includesubsites, 2)
) As [currentvalue],
(
Select [frequency]
From [DBO]. [fn_wa_gettotaltrafficvolume]
(@ Previusstartdateid, @ previusenddateid, @ aggregationid, @ includesubsites, 2)
) As [previusvalue]

Apparently,Fn_wa_gettotaltrafficvolumeFunction plays an important role in determining the number of unique visitors. The next T-SQL Code determined our current number of unique visitors:

-Current unique visitors from table-Valued Function
Select [frequency]
From [DBO]. [fn_wa_gettotaltrafficvolume]
(@ Currentstartdateid, @ currentenddateid, @ aggregationid, @ includesubsites, 2)
-Current unique visitors from underlying table
Select
Isnull (sum ([frequency]), 0) as [frequency]
From [DBO]. [watrafficaggregationbydate] With (nolock)
Where
[Aggregationid] = @ aggregationid and
[Includesubsites] = 1 and
[Metrictype] = 2 and
[Dateid] Between @ currentstartdateid and @ currentenddateid

This function sums all unique users per day, but if you want to see the real number of unique users per day, you do:

-Show unique users per day
Select *
From [DBO]. [watrafficaggregationbydate] With (nolock)
Where
[Aggregationid] = @ aggregationid and
[Includesubsites] = 1 and
[Metrictype] = 2 and
[Dateid] Between @ currentstartdateid and @ currentenddateid

Using this query, we found 7 entries. This looks a lot more likeSite Collection web analytics reports-number of daily unique visitorsPage. So, there was the answer we were looking.

According to ifabc global web standards, a unique visitor is an IP address plus a further identifier (such as user name, user agent, or a cookie ). if you want to know how many daily unique visitors There are, you shoshould go toSite Collection web analytics reports-number of daily unique visitorsPage.SummaryPage is nothing more than a summation of all days and all unique visitors.

Is this a bad thing? We feel it is at least a little (okay, more than just a little ). it makes sense to provide overviews of the number of unique visitors per day, week, month, year or whatever. by simply summarizing all unique visitors, soon the number of unique visitors on the summary page goes sky high. it leads to a situation where web analytic reports show that there are 1000 unique visitors, whereas in reality there are only 100. we know it's a summary page, but we also feel this is a situation where simple math doesn't apply to this data and leads to confusing results.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.