For every button/video/form an tracking script can be implemented to get more insights in the behaviour of the visitors to be able to optimize the website according to this behaviour.
How to set this up:Some of the buttons are coded in WordPress others are in the hardcode of the website. When you’re not able to add the code in WordPress it can only be done in the hardcode. However, to be able to track all relevant actions in Matomo both ways should be implemented in a similar manner. In Wordpress:
If you want to know how often the button ‘’Sluit je aan’’ on the ‘’Doe mee’’ page is clicked. You add the event using the following script. For the homepage the URL-part would be /.
<a class="btn btn-lg btn-blue" href="/join" >Sluit je aan</a>
And with the code:
<a class="btn btn-lg btn-blue" href="/join" onclick="_paq.push(['trackEvent', 'Button', 'Clicked', '/doe-mee/ - Sluit je aan']);">Sluit je aan</a>More info can be found here: https://matomo.org/docs/event-tracking/
In the Hardcode:Will be added later.