I don’t seem to be getting any output in the Events area of the Dashboard. Perhaps I’m doing something incorrectly?
I’ve added the following to my <script>
block below the Piwik tracking code :
const form = document.querySelector('.my-form');
form.addEventListener('submit', () => {
_paq.push(['trackEvent', 'MyFormSubmitted', 'submit']);
});
And the following HTML:
<form
class="my-form"
data-track-content
data-content-ignoreinteraction
data-content-name="myForm"
method="POST"
action="//mailchimp/post/url/stuff">
...
</form>
I don’t know what I can try to troubleshoot…