|
18 | 18 | 'Plugin\Podcaster\PodcasterStatsFile' => 'utils/PodcasterStatsFile.php', |
19 | 19 | 'Plugin\Podcaster\PodcasterStatsPodTrac' => 'utils/PodcasterStatsPodTrac.php', |
20 | 20 | 'Plugin\Podcaster\PodcasterWizard' => 'utils/PodcasterWizard.php', |
21 | | - // 'Plugin\Podcaster\PiwikTracker' => 'lib/PiwikTracker.php' |
22 | 21 | ], __DIR__); |
23 | 22 |
|
24 | 23 | Kirby::plugin('mauricerenck/podcaster', [ |
|
98 | 97 | $stats->increaseFeedVisits($podcast, $trackingDate); |
99 | 98 | } |
100 | 99 |
|
101 | | - if ($feed->podcasterMatomoFeedEnabled()->isTrue()) { |
102 | | - $matomoUtils = new PodcasterStatsMatomo($podcast->podcasterMatomoSiteId(), $episode); |
103 | | - $matomoUtils->trackEpisodeDownload($podcast); |
| 100 | + if ($podcast->podcasterMatomoFeedEnabled()->isTrue()) { |
| 101 | + $matomoUtils = new PodcasterStatsMatomo($podcast->podcasterMatomoSiteId()); |
| 102 | + $matomoUtils->trackFeedDownload($podcast); |
104 | 103 | } |
105 | 104 |
|
106 | 105 | return new Response($podcast->render(), 'text/xml'); |
|
123 | 122 | } |
124 | 123 |
|
125 | 124 | if ($podcast->podcasterMatomoEnabled()->isTrue()) { |
126 | | - $matomoUtils = new PodcasterStatsMatomo($podcast->podcasterMatomoSiteId(), $episode); |
127 | | - $matomoUtils->trackEpisodeDownload($podcast); |
| 125 | + $matomoUtils = new PodcasterStatsMatomo($podcast->podcasterMatomoSiteId()); |
| 126 | + $matomoUtils->trackEpisodeDownload($podcast, $episode); |
128 | 127 | } |
129 | 128 |
|
130 | 129 | $filename = str_replace('.mp3', '', $filename); |
|
0 commit comments