I am writing ECommerce plugin. And like google analytics, I want to show “page views before purchase” and “time spent before purchase”.
This is array visitorInfo by hook Tracker.knownVisitorInformation.
We can see that it is easy to know “time spent before purchase”.
But I can’t know “page views before purchase” if I don’t modify “core/tracker/visit.php” .
Can piwik add this feature?
Total page views per visitor is not currently aggregated. Without a database schema change, the additional query would be a significant performance hit on the Tracker. Please create a feature request ticket in Trac.
It seems that ‘total actions’ means the amount of visits for this idvisit according to my test. Maybe I have mistake in understanding pageview.
How can add this??
cndark, in this case you might have to hook and select the data you need from the database, as vipsoft, we don’t select any data from piwik_log_visit, so doing it in core would add overhead.