Hi,
I have created a Custom Variable UserID in my piwik, now i want to get various summary details from piwik against each UserID, for example the default limited details available for a given custom variable are as below:
<nb_visits>454</nb_visits>
<nb_actions>3318</nb_actions>
<max_actions>74</max_actions>
<sum_visit_length>506300</sum_visit_length>
<bounce_count>19</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<sum_daily_nb_uniq_visitors>6</sum_daily_nb_uniq_visitors>
However I need extended response which will return visit summary(as given above) details, browser usage details, user settings details, etc for each user. Currently i am making one request to piwik to return me the list of users for today, then i make many many requests(as no of users) to piwik to return various metrics for each user. To get various metrics, i am using API.getBulkRequest to combine various api calls under one request and add a segment filter for given UserID. I have to make this request many times to get these metrics for each users, which is flooding the network,
Is there a way i can make one request to piwik which returns me the desired metrics(from 3 to 4 apis may be by using getBulkRequest) for each UserID(custom variable), I need response something like below(or may be in diffrent rows)
<userid>user1</userid>
<nb_visits>454</nb_visits>
<nb_actions>3318</nb_actions>
<max_actions>74</max_actions>
<sum_visit_length>506300</sum_visit_length>
<bounce_count>19</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<sum_daily_nb_uniq_visitors>6</sum_daily_nb_uniq_visitors>
<row>
<label>United States</label>
<nb_visits>454</nb_visits>
<nb_actions>1059</nb_actions>
<max_actions>74</max_actions>
<sum_visit_length>157980</sum_visit_length>
<bounce_count>6</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<code>us</code>
<logo>plugins/UserCountry/flags/us.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Internet Explorer</label>
<nb_visits>134</nb_visits>
<logo>plugins/UserSettings/images/browsers/IE.gif</logo>
</row>
<row>
<label>Firefox</label>
<nb_visits>2</nb_visits>
<logo>plugins/UserSettings/images/browsers/FF.gif</logo>
</row>
<row>
<label>Chrome</label>
<nb_visits>2</nb_visits>
<logo>plugins/UserSettings/images/browsers/CH.gif</logo>
</row>
<row>
<label>Safari</label>
<nb_visits>1</nb_visits>
<logo>plugins/UserSettings/images/browsers/SF.gif</logo>
</row>
<row>
<label>Unknown</label>
<nb_visits>1</nb_visits>
<logo>plugins/UserSettings/images/browsers/UNK.gif</logo>
</row>
.....
....
<userid>user2</userid>
...
...
and so on
I think i want response from piwik api grouped by custom variable values if that makes sence
I have created a Custom Variable UserID in my piwik, now i want to get various summary details from piwik against each UserID, for example the default limited details available for a given custom variable are as below:
<nb_visits>454</nb_visits>
<nb_actions>3318</nb_actions>
<max_actions>74</max_actions>
<sum_visit_length>506300</sum_visit_length>
<bounce_count>19</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<sum_daily_nb_uniq_visitors>6</sum_daily_nb_uniq_visitors>
However I need extended response which will return visit summary(as given above) details, browser usage details, user settings details, etc for each user. Currently i am making one request to piwik to return me the list of users for today, then i make many many requests(as no of users) to piwik to return various metrics for each user. To get various metrics, i am using API.getBulkRequest to combine various api calls under one request and add a segment filter for given UserID. I have to make this request many times to get these metrics for each users, which is flooding the network,
Is there a way i can make one request to piwik which returns me the desired metrics(from 3 to 4 apis may be by using getBulkRequest) for each UserID(custom variable), I need response something like below(or may be in diffrent rows)
<userid>user1</userid>
<nb_visits>454</nb_visits>
<nb_actions>3318</nb_actions>
<max_actions>74</max_actions>
<sum_visit_length>506300</sum_visit_length>
<bounce_count>19</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<sum_daily_nb_uniq_visitors>6</sum_daily_nb_uniq_visitors>
<row>
<label>United States</label>
<nb_visits>454</nb_visits>
<nb_actions>1059</nb_actions>
<max_actions>74</max_actions>
<sum_visit_length>157980</sum_visit_length>
<bounce_count>6</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
<code>us</code>
<logo>plugins/UserCountry/flags/us.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Internet Explorer</label>
<nb_visits>134</nb_visits>
<logo>plugins/UserSettings/images/browsers/IE.gif</logo>
</row>
<row>
<label>Firefox</label>
<nb_visits>2</nb_visits>
<logo>plugins/UserSettings/images/browsers/FF.gif</logo>
</row>
<row>
<label>Chrome</label>
<nb_visits>2</nb_visits>
<logo>plugins/UserSettings/images/browsers/CH.gif</logo>
</row>
<row>
<label>Safari</label>
<nb_visits>1</nb_visits>
<logo>plugins/UserSettings/images/browsers/SF.gif</logo>
</row>
<row>
<label>Unknown</label>
<nb_visits>1</nb_visits>
<logo>plugins/UserSettings/images/browsers/UNK.gif</logo>
</row>
.....
....
<userid>user2</userid>
...
...
and so on
I think i want response from piwik api grouped by custom variable values if that makes sence