diff --git a/Configuration/Services.yaml b/Configuration/Services.yaml index 597b23a..e8a78da 100644 --- a/Configuration/Services.yaml +++ b/Configuration/Services.yaml @@ -39,3 +39,14 @@ services: arguments: $queryBuilder: '@querybuilder.tx_tracking_pageview' $blackListedPages: [1, 11, 38] + + DanielSiepmann\Tracking\Middleware\Pageview: + public: true + arguments: + $rule: > + not (context.getAspect("backend.user").isLoggedIn()) + and not (request.getHeader("User-Agent")[0] matches "/^TYPO3|TYPO3 linkvalidator/") + and not (request.getHeader("User-Agent")[0] matches "/^Codeception Testing/") + and not (request.getHeader("User-Agent")[0] matches "/Wget|curl|Go-http-client/") + and not (request.getHeader("User-Agent")[0] matches "/Googlebot|Bingbot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|NextCloud-News|Feedly|XING FeedReader|CCBot|SemrushBot|SEOkicks|Twitterbot|Seekport Crawler|SemanticScholarBot|ia_archiver|PaperLiBot|TrendsmapResolver|AhrefsBot|Nuzzel/") + and not (request.getHeader("User-Agent")[0] matches "/mattermost|Slackbot|WhatsApp/")