@anonymous-piwik-user opened this Issue on February 23rd 2010

When I requested:

/index.php?module=API&method=VisitsSummary.getUniqueVisitors&idSite=2&period=week&date=2010-01-25,2010-02-07&format=XML&token_auth=TOKEN&expanded=1

I got this data back:

<results>
    <result date="2010-01-18 to 2010-01-24">739</result>
    <result date="2010-01-25 to 2010-01-31">4</result>
    <result date="2010-02-01 to 2010-02-07">5</result>
</results>

I was not expecting the "2010-01-18 to 2010-01-24" data.

Changing the period to "day" instead of "week" does not return extra records:

<results>
    <result date="2010-01-25">3</result>
    <result date="2010-01-26">4</result>
    <result date="2010-01-27">3</result>
    <result date="2010-01-28">1</result>
    <result date="2010-01-29" />
    <result date="2010-01-30" />
    <result date="2010-01-31" />
    <result date="2010-02-01">4</result>
    <result date="2010-02-02">3</result>
    <result date="2010-02-03">5</result>
    <result date="2010-02-04" />
    <result date="2010-02-05">1</result>
    <result date="2010-02-06" />
    <result date="2010-02-07" />
</results>
@mattab commented on March 2nd 2010 Owner

You are requesting for weekly stats for: 2010-01-25, 2010-02-07
Is it expected that you get the current unfinished week. You will also get the partial first week. If you don't need the data, ignore weeks that are less than 7 days.

This Issue was closed on March 19th 2010
Powered by GitHub Issue Mirror