How to add the script to your Squarespace site

You can use the "Code injection" feature to add Plausible Analytics tracking code to your Squarespace website same way you would add Google Analytics code or any other JavaScript code. Site-wide JavaScript code injection is a premium Squarespace feature on their business and commerce subscription plans.

  • In the "Home Menu", click "Settings", then "Advanced" and then click "Code Injection".

  • Add your Plausible Analytics script to the "Header" text box. Code added into the "Header" field is injected into the <head> tag on every page of your site.

  • After adding your code, click on the "Save" button.

Squarespace code injection

Now you can go to your website to verify if the Plausible Analytics script has been added and to your Plausible Analytics account to see whether the stats are being tracked.