Export count of page visits for a specific url

I Make artificial page views with javascript on my website using javascript


I need to be able to export how many times the above code was executed, so that I can show them on my website, however I’m not sure what my query to the API should be, here is my attempt:


It returns an error at this time “Error: The report ‘VisitsSummary_CoreMetrics’ was requested but it is not available at this stage. You may also disable the related plugin to avoid this error.”

I don’t see a plugin with that name in plugins section, my active plugins are “Actions, Dashbord, DoNotTrack, ExampleAPI, ExamplePlugin, Live, Login, Widgetize”

Not sure if this is the right query to send to the API or not, any help is appreciated.

if you want the stats for this particular page, remove the &segment and instead use filter_pattern instead http://piwik.org/docs/analytics-api/reference