mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-12-23 08:26:08 +01:00
Daniel Siepmann
33685d1735
Allow Integrator to define rules to track views of records. This allows to add tracking to extensions like tx_news. Integrators are able to define matching rules on current request. If a request matches, the record is stored as individual view beside existing pageview. Relates: #14
24 lines
748 B
PHP
24 lines
748 B
PHP
<?php
|
|
|
|
return [
|
|
'frontend' => [
|
|
'danielsiepmann/tracking/pageview' => [
|
|
'target' => \DanielSiepmann\Tracking\Middleware\Pageview::class,
|
|
'before' => [
|
|
'typo3/cms-frontend/content-length-headers',
|
|
],
|
|
'after' => [
|
|
'typo3/cms-frontend/shortcut-and-mountpoint-redirect',
|
|
],
|
|
],
|
|
'danielsiepmann/tracking/recordview' => [
|
|
'target' => \DanielSiepmann\Tracking\Middleware\Recordview::class,
|
|
'before' => [
|
|
'typo3/cms-frontend/content-length-headers',
|
|
],
|
|
'after' => [
|
|
'typo3/cms-frontend/shortcut-and-mountpoint-redirect',
|
|
],
|
|
],
|
|
],
|
|
];
|