I am trying to create a function doing something when a new visit happens. If I use the newVisitorInformation hook, it records stuff but that is only when a new visitor comes for the first time, not when he returns (correct?). So, trying to use getNewVisitObject instead:
public function getNewVisitObject($notification) {
$visit =& $notification->getNotificationObject();
$raw_data = serialize($visit);
... record into DB...
Yes, a new visit. But, this also includes when the same person returns again. If he comes back ten times in two weeks, I want to record something each of these ten times. He will be a “new visitor” the first time only, then the hook will not be called if I understand correctly?