In your "Project settings" click on "Custom code".
Find the "Head code" section.
Paste your Plausible tracking code in the "Head code" section and save changes.
Now you can go to your website and verify whether Plausible Analytics script has been added and to your Plausible Analytics account to see whether the stats are being tracked. See here how to verify the integration.
Here's an example of how you can track form submissions on your Webflow site using our custom events.
First, make sure your tracking setup includes the second line as shown below. For this, follow the same steps you took when inserting the default Plausible snippet.
Your form element should already have an ID attribute by default. Look up the value of this from the Designer view, by selecting the form element:
If you want to trigger form submissions, button clicks etc. you need to implement the code for that yourself. This is how the code should look like to track form submissions on Webflow. In the below code, you need to replace the following:
<my-form-id>with the id value from the previous step
<my-event-name>with the custom event name you want to be shown on your Plausible dashboard (use this same name in step 5)
When you start sending custom events to Plausible Analytics, they won’t show up automatically. You’ll have to configure the goal for the conversion numbers to show up.
To configure a goal, go to your website’s settings in your Plausible Analytics account and visit the "Goals" section. You should see an empty list with a prompt to add a goal.
Click on the "+ Add goal" button to go to the goal creation form.
Custom event as the goal trigger and enter the name of the custom event you are triggering. The names must be an exact match to the one on your site for the conversions to show up in your analytics dashboard.
Next, click on the "Add goal" button and you’ll be taken back to the Goals page.
Your goal should now be set up. When you navigate back to your Plausible Analytics dashboard, you should see the number of visitors who triggered the custom event. Goal conversions are listed at the very bottom of the dashboard. The goal will show up in your dashboard once it has been completed at least once.