@sgiehl opened this Issue on July 10th 2017 Member

We currently have the visit dimensions VisitorTotalInteractions and VisitorTotalActions.
Those two dimensions include some logic to raise the visits counter for interactions and actions.
As those logic can't be overwritten or extended by additional plugins, those values might not be counted correctly for custom action types, like Content actions (impressions / interactions)

As the visitor log/profile will be extendable by new plugins soon, we should fix that. So the action count is displayed properly.

I would included it in #11579 maybe, but currently I'm not sure what we should count as interaction and/or as action. Looking at the code I'm a bit confused, as when I got that correct, some actions are interactions as well, as long as they refresh the exit url.

For me a pageview, outlink or download would be an action only, where an event or site search would be an interaction only. (And an content impression for example would be none)

@mattab Could you explain the difference between action and interaction in Piwik context? And why it might be the case that both will be incremented for the same action?

@mattab commented on July 11th 2017 Owner

An interaction is a Page view or a Site Search, while an Action also includes Downloads, Outlinks, Events.

the total interactions counter was introduced in https://github.com/piwik/piwik/pull/10911 I believe for UsersFlow visualisation.

@sgiehl Let's discuss this after 3.1.0 with @tsteur if needed

@sgiehl commented on July 11th 2017 Member

@mattab @tsteur we should try to find some nice definition what identifies an action and interaction (and have them in the developer guides), so it's easy for everyone who builds a plugin including custom actions to define if his action is an action or interaction (or maybe both). I'd extend the Action class by method like isAction and isInteraction, so everyone can define that easily

Powered by GitHub Issue Mirror