Add logic to send visits to a matomo instance

This commit is contained in:
Alejandro Celaya
2023-11-15 19:57:58 +01:00
parent 0edb3e5c2c
commit 9dbd15bc0c
13 changed files with 341 additions and 147 deletions

View File

@@ -75,6 +75,6 @@ class VisitsTracker implements VisitsTrackerInterface
$this->em->persist($visit);
$this->em->flush();
$this->eventDispatcher->dispatch(UrlVisited::withOriginalIpAddress($visit->getId(), $visitor->remoteAddress));
$this->eventDispatcher->dispatch(new UrlVisited($visit->getId(), $visitor->remoteAddress));
}
}