How to add the script to your Wix site
You can use the Custom Code feature to add Plausible Analytics tracking code to your Wix website the same way you would add Google Analytics code or any other JavaScript code.
Site-wide JavaScript code injection is a premium Wix feature so you need to upgrade your Wix account to a paid subscription plan.
-
In your site's dashboard, click on Settings, and under Development & Integrations click on Custom Code.
-
Click the + Add Custom Code button in the top right.
-
Paste your Plausible tracking code, give it a name, choose which pages to add the code to (All Pages), select Load code once per visit (read more about this here), select Head as the place for the code and click the Apply button.
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.