Hi @jiivee,
Query strings are currently filtered out on a whitelist basis, so only certain commonly used query strings are allowed. This value defaults to the ones used by WordPress core (p, cat, tag, etc.) but we can definitely make this customizable.
What query parameter are you thinking of specifically? This can help us decide whether it is one we want to support by default.
Kind regards,
Danny
Thread Starter
jiivee
(@jiivee)
Thank you for the quick reply Danny😀
For me the query string parameter “area” is essential to sort different areas of service.
I now use Matomo to get out but would be fantastic to have it from Koko Analytics.
Br,
Janne
Thanks @jiivee – I’ll see what we can do to support this and will keep you posted in this thread!
Hi @jiivee,
The next release of the Koko Analytics plugin comes with a new filter hook that you can use to allow additional query variables, like area in your example.
A sample use of this filter hook can be found here: https://github.com/ibericode/koko-analytics/blob/main/code-snippets/allow-query-vars.php
(You can save this file in your /wp-content/plugins/ directory and then activate it as a regular WordPress plugin.)
Please know that the snippet will have no effect until we release the next version of Koko Analytics, which is due in about ~2 weeks.
I hope that helps. If not, let me know please.