I’m wondering if there’s a way to build a custom shortcode that i can use on Wordpress member pages to display custom analytics to users.
I want to display to Authors statistics with regards to their publications or other custom page urls or post types.
Is there a way to achieve this please?
Examples:
[matomo_analytics user=“authoridhere” charttype=“authorarticles”]
[matomo_analytics user=“authoridhere” charttype=“page” pageurl=“example.com/custom/*”]
Where the asterisk in the second example is a wildcard url.
The wildcard is all pretty simple on the backend for me, but I’m not sure how to go about building this shortcode in relation to Matomo.
Thanks!