Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 4243

Getting most visited pages via HTTP API, but with details (no replies)

$
0
0
My site urls look like this(after domain):

/somepage/somedetail
/somepage/someanotherdetail
/somepage/somemoredetail

I use this (php) code to get most visited pages:
$url = "?module=API&method=Actions.getPageUrls&idSite=1&date=yesterday&period=week&format=PHP&filter_limit=10&token_auth=" . $token_auth;
$fetched = file_get_contents($url);
$content = unserialize($fetched);

and the result is basically your most visited page is: /somepage/, then some other pages. but as far as url's go, piwik doesn't consider the rest of the url a "different url"
so how can I get most 10 visited pages that start with /somepage/, where I am interested in the last part of that url.

Another question: when I add a "search parameter" as "somepage/" it doesnt work. to register the "/somedetail" part as the search word, how should I add it?

Thanks.

Viewing all articles
Browse latest Browse all 4243

Trending Articles