kirby-stats icon indicating copy to clipboard operation
kirby-stats copied to clipboard

Routes and stats

Open tobiasfabian opened this issue 9 years ago • 1 comments

I wanted to use routes but unfortunately they don’t work in combination with your great stats plugin.

tobiasfabian avatar Mar 26 '15 17:03 tobiasfabian

Unfortunately, that's because I decided to use the router for a lot of functionality (mainly because I wanted to learn about the router, not a good design choice for a general plugin...).

For now, you can include the snippet (snippet('stats', array('param' => $page->uri()));) directly on every page (e.g. in the header or footer) and get rid of the plugin's routes to get everything to work as expected.

FabianSperrle avatar May 17 '15 08:05 FabianSperrle