I am trying to find a good way to enable rss-tracking for my podcaster plugin. I’m using a route which is defined in my plugins config
'pattern' => '(:all)/podtrack',
It would work that way, the user can just append podtrack to the rss-url and I can do the matomo calls in the route. But it would be better if the user could define a default rss-feed-slug, for example podcast-feed the route could then be something like:
Ouuuuhhhh… I think I got it… I set a default value, but I did it in my config.php using 'options' => […] doing this doesn’t seem to work, but setting a fallback works perfect!
Is it possible to define the option and the route in the plugin and use this method? Perhaps there’s a different way to reference it when it’s defined in the same plugin?
It’s defined like this:
'options' => [
'option-label' => 'sample',
],
But doesn’t work within the pattern in the same file: