Question

I am using Piwik managed goal conversion for my pages. How can I get the history of goal conversions like I get the visits history. Currently, I only can fetch the total conversions against an idSite but I need the complete log as well.

I need to fetch this through API.

After some research it turns that Goals.getConversions is better option if one just want to gets the conversion for the day.

Was it helpful?

Solution

Via the Live! Analytics API, you should be able to query the visits with conversions, by using the API Segment parameter &segment=visitConverted==1

This will return all visits with a conversion, then you can grab the conversions from the array for each visit..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top