Possibility to give visits a "type" like:
With this one can keep every visit always in database but can
easily decide (filter) for each type of visit being
This should be the better, more general way to achieve all advantages from
This is the basic for
1) Delete function and being able to have an "undo function" (https://github.com/piwik/piwik/issues/3385 and https://github.com/piwik/piwik/issues/9204)
With this the action "deleting" is only a change of type from standard to deleted
And undo is simply changing type from "deleted" back to "standard".
2) Simplifying bot tracking https://github.com/piwik/piwik/issues/9067
every bot got the "type" "bot"
to making undo easily possible one could e.g store a second type for each visit "was before type"
so one can easily revert any change by looking into this visit field
from technical pov this could be somehow related to https://github.com/piwik/piwik/issues/8161