Opened 3 years ago

Closed 3 years ago

#2307 closed New feature (fixed)

Live! API to support the 'segment' parameter to allow querying any visit level information

Reported by: matt Owned by:
Priority: major Milestone: Piwik 1.3
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by matt)

This would be cool to have, in response to this forum post request, as a general tool. Also it would make the API consistent because other functions support the segment parameter.

For example it will make possible to select:

  • all visits (and their actions/goal conversions) for a given IP
  • or for a given country
  • or for a given keyword
  • or for any combination of segments data

Then later we could update the UI for the Visitor Log to add "Filters" at the top. However it would be nice to wait for this until we can build a reusable "Filter" for building segments that we could use for the Visitor Log but also to define segments for all other reports.

Change History (2)

comment:1 Changed 3 years ago by matt (mattab)

  • Description modified (diff)

comment:2 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4441]) Fixes #2307 - Live! api now accepts segments (for the Counter call and the GetLastVisits call)
The next step that would be a real OMG would be to have Filters in the UI to be able to ajax search any visitor based on any criteria... oh that would be cool ;)

Fixes #2309 - also adding visitorId as a segment
+ integration tests for both new features

Note: See TracTickets for help on using tickets.