Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

API: No results when using segements with years

$
0
0

@minos314 wrote:

Hi,

We have some weird effects in our matomo reports when we use segments. I can reproduce the underlying problem using the API, where I’m getting inconsistent results using different periods.

I get expected results when i use period=month

query:
index.php?module=API&method=Actions.getPageUrls&token_auth=...&idSite=1&date=20170101&segment=pageUrl%3D@tirol.gv.at%252Fschwaz%252F&period=month

result:
<?xml version="1.0" encoding="utf-8" ?>
<result>
	<row>
		<label>schwaz</label>
		<nb_visits>9263</nb_visits>
		<nb_hits>10437</nb_hits>
		<sum_time_spent>212838</sum_time_spent>
		<nb_hits_following_search>660</nb_hits_following_search>
		<sum_bandwidth>177068676</sum_bandwidth>
		<nb_hits_with_bandwidth>10018</nb_hits_with_bandwidth>
		<min_bandwidth>29423791</min_bandwidth>
		<max_bandwidth>38628250</max_bandwidth>
		<entry_nb_visits>3269</entry_nb_visits>
		<entry_nb_actions>15929</entry_nb_actions>
		<entry_sum_visit_length>556495</entry_sum_visit_length>
		<entry_bounce_count>1462</entry_bounce_count>
		<exit_nb_visits>2928</exit_nb_visits>
		<avg_bandwidth>17675</avg_bandwidth>
		<avg_time_on_page>20</avg_time_on_page>
		<bounce_rate>45%</bounce_rate>
		<exit_rate>32%</exit_rate>
		<idsubdatatable>1</idsubdatatable>
	</row>
</result>

But following request using period=year gets an empty result:

query:
index.php?module=API&method=Actions.getPageUrls&token_auth=...&idSite=1&date=20170101&segment=pageUrl%3D@tirol.gv.at%252Fschwaz%252F&period=year`

Result:
<?xml version="1.0" encoding="utf-8" ?>
<result />

How is that possible? Any hints how I can dig into this?

Thanks for your help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles