API: Summary of all visitors


#1

Hi,

I am trying to get via API the summary of visitors based on a part of a given url.
But this not do able, because I have to use the complete url and this a to big effort:

Hi I get back the summary of a given url-part like:
[ul]
[li] url
[/li][li] url.html
[/li][li] url/more.html
[/li][li] url/more
[/li][/ul]

I have tried it with


$request = new Piwik_API_Request('
              method=VisitsSummary.get
              &idSite=ID
              &segment=pageUrl==' . urlencode($pageUrl) . '
              &date=' . $firstDay . '
              &period=month
              &format=php
              &token_auth=TOKEN);

But this doesnt work like I needed it.

Thanks in advance.

Metan


(Matthieu Aubry) #2

Try &expanded=1 there will be a new element