Skip to content


Subversion checkout URL

You can clone with
Download ZIP


All API functions (including Actions.* and Goals.*) should support all segments #2434

anonymous-piwik-user opened this Issue · 2 comments

2 participants


Currently the Goals plugin & Actions plugin does not issue an error when given an unsupported Segment.


The list of SQL segments supported by the Goals API are:


We should either:

  • Make all dimensions work for Goals plugin
  • For all unsupported dimensions, return an error message "The segment 'actions' is not supported for this API call"
    • Note that, in some cases, the "per goal" metrics are not available, but the general metrics are available. For example, segment=actions>1 will return "Top keywords" but will not return "Goal X conversions /Goal Y conversion rate / Goal Z revenue" for each keyword. In this case, we shall not return an error message, but just return the common metrics not enriched with the goal details.

I vote for the solution to make all segments work for all API functions.


(In [4717]) Fixes #2434 Now Actions.get* and Goals.get* (which were the two API not supporting all segments) have full support of all segments + adding tests

Refs #2432

  • Processing Custom vars per page: they are merged in the existing Custom Variables output (rather than create a separate one)
  • So there is no need for a new Report in the UI, Custom variables of scope "page" are displayed in the "Visitors > Custom Variables" report
  • Displaying Custom vars per page in the Live API output
@anonymous-piwik-user anonymous-piwik-user added this to the 1.5 - Piwik 1.5 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.