Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total actions and interactions may not be counted correctly #11856

Open
sgiehl opened this issue Jul 10, 2017 · 2 comments
Open

Total actions and interactions may not be counted correctly #11856

sgiehl opened this issue Jul 10, 2017 · 2 comments

Comments

@sgiehl
Copy link
Member

sgiehl commented Jul 10, 2017

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
Copy link
Member

mattab commented Jul 11, 2017

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 #10911 I believe for UsersFlow visualisation.

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

@sgiehl
Copy link
Member Author

sgiehl commented Jul 11, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants