Can I place advertisements on my site?

Best practices when displaying ads on your site.

Last updated January 17, 2025

Although we don't have built-in advertisement integrations, you can include ads on your site using third-party services like Google AdSense. If you display ads, ensure their content follows our Terms of Service and Acceptable Use Policy.

Accessing this feature

The steps in this guide include adding advanced code to code blocks and code injection panels. These are available in the Core, Plus, Advanced, Business, Commerce Basic, and Commerce Advanced plans. To learn more, visit Choosing the right Squarespace plan

Display ads on your site

To display ads on your site, sign up with a third-party ad service. On your Squarespace site, paste code from the ad service into code blocks. You may want to start in a sidebar or footer.

Google AdSense

Google AdSense is a popular third-party ad service.

By default, Google uses machine learning to choose where to place ads on your site. To enable this, add the activation code from your Adsense homepage to the Header field in site-wide code injection.

For more control, you can choose exactly where the ads display using code blocks:

  1. Remove the activation code from site-wide code injection (if you added it before).
  2. Disable auto-ads in your Google AdSense account.
  3. Create an ad unit and copy its code.
  4. Place the ad on your site by pasting the code into a code block.

Google sometimes recommends uploading an ads.txt file to your root-level domain or directory. There isn't a built-in way to do this in Squarespace, but you may be able to add a text file to your site by making a custom modification. To learn more, visit this post in the Squarespace Forum. Keep in mind, custom modifications like this one fall outside the scope of our support. This means we're unable to help you set up or troubleshoot these solutions. 

Contact Google AdSense support for more information and possible alternatives. 

Note

Code-based customizations like embedded display ads fall outside the scope of our support. This means that we’re unable to help further with setup or troubleshooting. Additionally, since these are code-based solutions, we can’t guarantee their functionality or full compatibility with Squarespace. This includes how the ads function with our responsive design, particularly their appearance on mobile devices, and if they function on all templates. Code-based customizations can also cause display issues with future updates to our platform. While we can't help further, there are many resources that can point you in the right direction:

Footer Image
  • Get help from our community

  • Get help from our community on advanced customizations.

  • Hire a Squarespace Expert

  • Stand out online with the help of an experienced designer or developer.

Can I place advertisements on my site?