Segmentation pageUrl


#1

I have a problem getting a statistic using pageUrl via API (piwik 1.6)

The segment works if the parameter pageUrl ends with a slash:
OK: &segment=pageUrl==http%3A%2F%2Fmysite.com%2F

But it gives no results if i use a specific page:
NOT OK: &segment=pageUrl==http%3A%2F%2Fmysite.com%2Findex.html

Besides, the pageUrl gives no results using the =@ - operator
NOT OK: &segment=pageUrl=@index.html

Any suggestions?

Thank you

The Rest of the call is as follows:

		method=VisitsSummary.getVisits
		&idSite=1
		&date=2011-10-01,2011-10-19
		&period=range
		&format=PHP
		&filter_limit=-1
		&token_auth=anonymous

(Matthieu Aubry) #2

But it gives no results if i use a specific page:

Check that the page you are segmenting against appears in the table piwik_log_action ?

In the demo it works: http://demo.piwik.org/index.php?module=API&method=Actions.getPageUrls&format=XML&idSite=7&period=day&date=yesterday&filter_limit=100&segment=pageUrl==http://forum.piwik.org/posting.php

For the =@ operator, I just tried and indeed it does not work. I created a ticket: pageUrl segment does not work with =@ contains operator · Issue #2727 · matomo-org/matomo · GitHub