For a site of mine I track banner stats through the customVariables. I request these stats through the widget on our control panels. This works but performance is getting bad because these segmentations are not pre-processed by the archive task.
Is it possible to pre-process segmentations that contain a dynamic value? For example:
What would be a good solution to solve this problem?
Honestly for tracking banner impressions and clicks the very best solution is to use content tracking being worked on in this issue https://github.com/piwik/piwik/issues/4996
It will be released in 2.7.0 so your feedback will be greatly appreciated!
Thanks for your answer. Sounds very good! I read all documentation and do not have much in depth feedback. Looks to me you are considering alot of use cases regarding how to detect content on a page. Though I run Piwik server-side as an GA alternative. Server-side so can track without worry too much about these tracking/cookie laws. Like a non-js alternative.
So I am pushing in all stats to the API using the PHP library. I assume it is possible for me to add these stats manually? Is not clear from docs right now, or haven’t read properly. It would be very appriciated if these javascript calls are available through the library too with adding custom content data manually. I bet they will, because it’s just an API. But ready library methods would be very useful.
So I implemented the Content Tracking feature. MUCH better! Thank you.
But… performance is still bad when requesting charts. So I am left with the same problem. I cannot find anything in the docs to make the stats being archived per content name segment.
This must be a common problem when using this feature. What’s the best way to solve?
INFO CoreConsole[2014-10-27 10:50:36] [8a293] - Will pre-process 2 Segments for each website and each period: contentName==Banner_38271, customVariablePageName1==Version;customVariablePageValue1==Mobile
But nowhere futher in the log it says it is processing Banner_38271. Just these lines:
INFO CoreConsole[2014-10-27 10:50:43] [8a293] Will pre-process the following 1 Segments for this website (id = 7): customVariablePageName1==Version;customVariablePageValue1==Mobile
INFO CoreConsole[2014-10-27 10:50:45] [8a293] Archived website id = 7, period = day, 1599 visits in last last2 days, 325 visits today, Time elapsed: 4.609s
INFO CoreConsole[2014-10-27 10:50:45] [8a293] Will pre-process the following 1 Segments for this website (id = 7): customVariablePageName1==Version;customVariablePageValue1==Mobile
INFO CoreConsole[2014-10-27 10:50:51] [8a293] Archived website id = 7, period = week, 8762 visits in last last2 weeks, 325 visits this week, Time elapsed: 6.042s
INFO CoreConsole[2014-10-27 10:50:51] [8a293] Will pre-process the following 1 Segments for this website (id = 7): customVariablePageName1==Version;customVariablePageValue1==Mobile
.... etc
Apperently it is not needed? The thing that bothers me is that the Piwik panel graphs are instantly loading, for banners also. But the graphs through widgets using ‘actions’ (impressions not supported yet) is sooo slow. Would it be fixed when impressions graphs are supported in widgets?