You can use the “Code injection” feature to add WidgetWhats 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.
Add code to Code Injection

To add custom code to Code Injection:
- In the Home Menu, click Settings, click Advanced, then click Code Injection.
- Add valid HTML or scripts into the appropriate Code Injection fields for the header or footer.
- After adding your code, click Save.
Header
Code added here is injected into the <head> tag on every page in your site.
Footer
Code added here is injected before the closing </body> tag on every page in your site.
