Custom events note If you use the custom events feature, then these count towards your billable monthly pageviews. Custom events allow you to measure button clicks, purchases, subscription signups, form completions and pretty much any other action that you wish your visitors to take. "Custom events" is an optional enhanced measurement that's not included in our default script. This is because we want to keep the default script as simple and lightweight as possible. If you want to track custom events, here's how to enable it: Step 1: Enable "Custom events" for your site You can enable "Custom events" as an optional measurement when adding a new site to your Plausible account. If the site has already been added to your account, you can control what data is collected in the "Site Installation" area of the "General" section in your site settings. Enable custom events tracking during onboarding Step 2: Change the snippet on your site The tracking snippet changes depending on your selection of optional measurements. When making changes to your optional measurements, do ensure to insert the newest snippet into your site for all tracking to work as expected. Your Plausible tracking snippet should be inserted into the Header (
) section of your site. Place the tracking script within the … tags. Using WordPress? The quickest way to start tracking custom events is to use our official WordPress plugin Step 3: Add a CSS class name to the element you want to track on your site Use pageview goals to track the "thank you" page or the order confirmation page As an alternative to custom events, check out the pageview goals. Since pageviews are collected automatically, you don’t need to change your website’s code to measure pageview goals. This makes pageview goals the easiest way to start tracking any type of conversions. Tag the site element you want to track with a CSS class name. How to do this varies depending on the site builder, CMS or framework you've used to build your site. For instance, if you're using WordPress, you can click on any block element you want to track such as a button or a form. This will open up the block menu on the right-hand side of your screen. Click on any WordPress block element you want to track such as a button or a form You can then click on "Advanced" and add a CSS class name in the "Additional CSS class(es)" field. Add the CSS class name in this format: plausible-event-name=MyEventName. For instance, if you want to track form submissions on your contact form, you could use: plausible-event-name=Form+Submit. To represent a space character in the event names, you can use a + sign For example: plausible-event-name=Form+Submit will display as Form Submit in your dashboard Add a CSS class name in the 'Additional CSS class(es)' field When tracking form submits, it is important to tag the