How to View, Add Code injection in header, footer, order page in Squarespace 2026
By Impran M N
Code Injection lets you add scripts like analytics, tracking pixels, or third-party widgets to specific parts of your Squarespace site without editing individual pages. This guide covers finding the Code Injection settings and where to place scripts in the header, footer, and order pages.
01Log in and open your dashboard
Sign in at squarespace.com, using Continue with Google if linked, then open your website's backend dashboard.
02Find Code Injection
Use the search icon and type "code" to quickly reach Code Injection under your site's settings.
03Add header scripts
Use the header code injection box for scripts that need to load early, such as Google Analytics or SEO tags.
04Add footer scripts
Use the footer code injection box for scripts that can load later, like chat widgets or retargeting tools.
05Customize order confirmation pages
For scripts on the order confirmation or order status page, scroll to the Advanced settings within the Commerce section to add post-purchase tracking like a Facebook Pixel or Google Ads conversion tag.
Frequently asked questions
Is Code Injection available on all Squarespace plans?
No, Code Injection is only available on premium Squarespace plans, so you'll need to upgrade if you're on a basic plan.
Where do I add a tracking pixel for the order confirmation page?
Under Advanced settings within the Commerce section, which lets you insert scripts specifically for post-purchase events.
What's the difference between header and footer code injection?
Header code loads early and is best for analytics or SEO tags, while footer code loads later and suits things like chat widgets.
Is it safe to add custom code to my site?
It can be, but always test your code, avoid violating Squarespace's terms, and back up your changes before making them live.
Watch the full walkthrough
The same steps, demonstrated on screen from start to finish.



