Track short URL title as document title when sending visits to matomo

This commit is contained in:
Alejandro Celaya
2024-03-31 13:51:03 +02:00
parent 401046fbe5
commit 284b28e8d9
5 changed files with 17 additions and 10 deletions

View File

@@ -192,6 +192,11 @@ class ShortUrl extends AbstractEntity
return $this->forwardQuery;
}
public function title(): ?string
{
return $this->title;
}
public function reachedVisits(int $visitsAmount): bool
{
return count($this->visits) >= $visitsAmount;