69 lines
3 KiB
YAML
69 lines
3 KiB
YAML
services:
|
|
_defaults:
|
|
autowire: true
|
|
autoconfigure: true
|
|
public: false
|
|
|
|
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerDay:
|
|
arguments:
|
|
$queryBuilder: '@querybuilder.tx_tracking_pageview'
|
|
$pagesToExclude: [1, 11, 38]
|
|
|
|
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage:
|
|
arguments:
|
|
$queryBuilder: '@querybuilder.tx_tracking_pageview'
|
|
$pagesToExclude: [1, 11, 38]
|
|
|
|
DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews:
|
|
arguments:
|
|
$queryBuilder: '@querybuilder.tx_tracking_pageview'
|
|
$pagesToExclude: [1, 11, 38]
|
|
|
|
dashboard.provider.danielsiepmann.tracking.records.topics:
|
|
class: 'DanielSiepmann\Tracking\Dashboard\Provider\Recordviews'
|
|
arguments:
|
|
$queryBuilder: '@querybuilder.tx_tracking_recordview'
|
|
$recordTableLimitation: ['sys_category']
|
|
|
|
dashboard.widget.danielsiepmann.tracking.records.topics:
|
|
class: 'TYPO3\CMS\Dashboard\Widgets\DoughnutChartWidget'
|
|
arguments:
|
|
$view: '@dashboard.views.widget'
|
|
$dataProvider: '@dashboard.provider.danielsiepmann.tracking.records.topics'
|
|
tags:
|
|
- name: 'dashboard.widget'
|
|
identifier: 'newsDoughnut'
|
|
groupNames: 'tracking'
|
|
iconIdentifier: 'content-widget-chart-pie'
|
|
title: 'Topics'
|
|
description: 'Shows which topics are called most'
|
|
additionalCssClasses: 'dashboard-item--chart'
|
|
height: 'medium'
|
|
width: 'small'
|
|
|
|
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 "/bot|spider|Slurp|Sogou|NextCloud-News|Feedly|XING FeedReader|SEOkicks|Seekport Crawler|ia_archiver|TrendsmapResolver|Nuzzel/")
|
|
and not (request.getHeader("User-Agent")[0] matches "/mattermost|Slackbot|WhatsApp/")
|
|
|
|
DanielSiepmann\Tracking\Middleware\Recordview:
|
|
public: true
|
|
arguments:
|
|
$rules:
|
|
topics:
|
|
matches: >
|
|
request.getQueryParams()["topic_id"] > 0
|
|
and 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 "/bot|spider|Slurp|Sogou|NextCloud-News|Feedly|XING FeedReader|SEOkicks|Seekport Crawler|ia_archiver|TrendsmapResolver|Nuzzel/")
|
|
and not (request.getHeader("User-Agent")[0] matches "/mattermost|Slackbot|WhatsApp/")
|
|
recordUid: 'request.getQueryParams()["topic_id"]'
|
|
tableName: 'sys_category'
|