Hi there,
I’ve tried to follow the documentation on how to set up a custom event goal, but the current approach doesn’t seem to be working as I’d hoped.
I’m trying to set a custom event to track clicks of a download button and I’d like to pass the href attribute value of the button to Plausible so I can see which file has been clicked.
I’ve tried adding the following function to fire on a click event:
plausibleEvent (e) {
const $elem = $(e.currentTarget);
plausible('Download', {props: {file: $elem.attr('href')}});
}
I can see a Download event in the dashboard, but no sign of the custom prop. Could you let me know firstly whether this sort of tracking is possible and secondly why the current approach would not pass through to the dashboard.
Many thanks,
Stuart