How do I use the code injection feature in my website?
To use the code injection feature in your Squarespace website, follow these steps:
- Log in to your Squarespace admin dashboard.
- Navigate to Website -> Pages -> Website Tools (under Not Linked).
- Click on Code Injection.
- In the Code Injection panel, you will find two options:
- Header Code Injection: This is where you can insert code that will be placed in the
<head>
tag of your site. It's ideal for adding scripts or stylesheets that need to load before the page content. - Footer Code Injection: This option allows you to insert code at the end of your site, which can help improve loading times since it won't block the rendering of the page content.
- Header Code Injection: This is where you can insert code that will be placed in the
For more detailed guidance, you can visit the Complete Guide for Squarespace Code Injection.