2020-07-29 10:15:50 +02:00
services :
_defaults :
autowire : true
autoconfigure : true
public : false
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerDay :
arguments :
$queryBuilder : '@querybuilder.tx_tracking_pageview'
2020-08-19 23:36:51 +02:00
$pagesToExclude : [ 1 , 11 , 38 ]
2020-07-29 10:15:50 +02:00
2020-08-24 15:18:46 +02:00
DanielSiepmann\Tracking\Dashboard\Provider\NewestPageviews :
arguments :
$queryBuilder : '@querybuilder.tx_tracking_pageview'
$pagesToExclude : [ 1 , 11 , 38 ]
2020-07-29 10:15:50 +02:00
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage :
arguments :
$queryBuilder : '@querybuilder.tx_tracking_pageview'
2020-08-19 23:36:51 +02:00
$pagesToExclude : [ 1 , 11 , 38 ]
2020-07-29 10:15:50 +02:00
2020-08-24 15:18:46 +02:00
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage7_days :
class : DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage
2020-07-29 10:15:50 +02:00
arguments :
$queryBuilder : '@querybuilder.tx_tracking_pageview'
2020-08-19 23:36:51 +02:00
$pagesToExclude : [ 1 , 11 , 38 ]
2020-08-24 15:18:46 +02:00
$days : 7
dashboard.widget.danielsiepmann.tracking.pageViewsPerPage7_days :
class : 'TYPO3\CMS\Dashboard\Widgets\DoughnutChartWidget'
arguments :
$view : '@dashboard.views.widget'
$dataProvider : '@DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage7_days'
tags :
- name : 'dashboard.widget'
identifier : 'pageViewsPerPageDoughnut7_days'
groupNames : 'tracking'
iconIdentifier : 'content-widget-chart-bar'
title : 'Pageviews 7 Days'
description : ''
additionalCssClasses : 'dashboard-item--chart'
height : 'medium'
width : 'small'
DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage365_days :
class : DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage
arguments :
$queryBuilder : '@querybuilder.tx_tracking_pageview'
$pagesToExclude : [ 1 , 11 , 38 ]
$days : 365
dashboard.widget.danielsiepmann.tracking.pageViewsPerPage365_days :
class : 'TYPO3\CMS\Dashboard\Widgets\DoughnutChartWidget'
arguments :
$view : '@dashboard.views.widget'
$dataProvider : '@DanielSiepmann\Tracking\Dashboard\Provider\PageviewsPerPage365_days'
tags :
- name : 'dashboard.widget'
identifier : 'pageViewsPerPageDoughnut365_days'
groupNames : 'tracking'
iconIdentifier : 'content-widget-chart-bar'
title : 'Pageviews 365 Days'
description : ''
additionalCssClasses : 'dashboard-item--chart'
height : 'medium'
width : 'small'
2020-07-29 10:15:50 +02:00
2020-08-21 09:45:09 +02:00
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'
2020-08-24 15:18:46 +02:00
identifier : 'topics'
groupNames : 'tracking'
iconIdentifier : 'content-widget-chart-pie'
title : 'Topics 31 Days'
description : 'Shows which topics are called most'
additionalCssClasses : 'dashboard-item--chart'
height : 'medium'
width : 'small'
dashboard.provider.danielsiepmann.tracking.records.topics7_days :
class : 'DanielSiepmann\Tracking\Dashboard\Provider\Recordviews'
arguments :
$queryBuilder : '@querybuilder.tx_tracking_recordview'
$recordTableLimitation : [ 'sys_category' ]
$days : 7
dashboard.widget.danielsiepmann.tracking.records.topics7_days :
class : 'TYPO3\CMS\Dashboard\Widgets\DoughnutChartWidget'
arguments :
$view : '@dashboard.views.widget'
$dataProvider : '@dashboard.provider.danielsiepmann.tracking.records.topics7_days'
tags :
- name : 'dashboard.widget'
identifier : 'topics7days'
groupNames : 'tracking'
iconIdentifier : 'content-widget-chart-pie'
title : 'Topics 7 Days'
description : 'Shows which topics are called most'
additionalCssClasses : 'dashboard-item--chart'
height : 'medium'
width : 'small'
dashboard.provider.danielsiepmann.tracking.records.topics365_days :
class : 'DanielSiepmann\Tracking\Dashboard\Provider\Recordviews'
arguments :
$queryBuilder : '@querybuilder.tx_tracking_recordview'
$recordTableLimitation : [ 'sys_category' ]
$days : 365
dashboard.widget.danielsiepmann.tracking.records.topics365_days :
class : 'TYPO3\CMS\Dashboard\Widgets\DoughnutChartWidget'
arguments :
$view : '@dashboard.views.widget'
$dataProvider : '@dashboard.provider.danielsiepmann.tracking.records.topics365_days'
tags :
- name : 'dashboard.widget'
identifier : 'topics365days'
2020-08-21 09:45:09 +02:00
groupNames : 'tracking'
iconIdentifier : 'content-widget-chart-pie'
2020-08-24 15:18:46 +02:00
title : 'Topics 365 Days'
2020-08-21 09:45:09 +02:00
description : 'Shows which topics are called most'
additionalCssClasses : 'dashboard-item--chart'
height : 'medium'
width : 'small'
2020-07-29 10:15:50 +02:00
DanielSiepmann\Tracking\Middleware\Pageview :
public : true
arguments :
$rule : >
not (context.getAspect("backend.user").isLoggedIn())
2020-09-28 12:50:35 +02:00
and not (context.getAspect("frontend.preview").isPreview())
2022-09-16 15:04:31 +02:00
and traverse(request.getHeader("User-Agent"), '0')
2020-07-29 10:15:50 +02:00
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 : >
2022-09-16 15:04:31 +02:00
traverse(request.getQueryParams(), "topic_uid") > 0
2020-07-29 10:15:50 +02:00
and not (context.getAspect("backend.user").isLoggedIn())
2020-09-28 12:50:35 +02:00
and not (context.getAspect("frontend.preview").isPreview())
2022-09-16 15:04:31 +02:00
and traverse(request.getHeader("User-Agent"), '0')
2020-07-29 10:15:50 +02:00
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/")
2022-09-16 15:04:31 +02:00
recordUid : 'traverse(request.getQueryParams(), "topic_uid")'
2020-07-29 10:15:50 +02:00
tableName : 'sys_category'