I’m a Plausible.io user and have been for some time. It’s a great third-party tool for analytics and a simpler Google Analytics alternative. I’ve had it working with my Webflow site for a while now
They’ve recently rolled out a feature where you can add certain goals or conversions to your analytics. It requires two things:
The Plausible script added to the header of all pages. (This isn’t an issue, I know how to do this via the “Custom Code” section of project settings)
A JS event trigger when a button is clicked or similar.
(This is what I’m struggling with)
Their documentation on this feature has the specific info. Would love to have this connected to a button or similar.
Notice you can have both a link that the button sends you to (window.location.href = 'website.com') and a Plausible JS event-triggered (plausible('Goal Name')) note, it is separated by a semicolon ( ; )
But what about if you want to track form submissions. I added the following code to an HTML embed element within the form element to replace the existing submit button and it worked a treat.
The HTML Embed element can be found in the Elements panel. By putting the code above in an embed, and placing the embed within the Form element on your page, the rendered result is an additional element on the final form.
@scottmarkovits was trying to get this working too, but had issues. Unfortunately the software (on both ends) has changed since April 2020.