public function onNewAction(Request $request, Visitor $visitor, Action $action)
{
$shouldCount = VisitTotalInteractions::shouldCountInteraction($action);
if ($shouldCount && $visitor->isNewVisit()) {
return 1;
} else {
if ($shouldCount) {
return VisitTotalInteractions::getCurrentInteractionPosition($request);
}
}
return false;
}