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.
The steps in this guide include adding advanced code to Code Blocks and Code Injection panels. These are Premium features available in Business and Commerce plans.
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:
- Remove the activation code from site-wide Code Injection (if you added it before).
- Disable auto-ads in your Google AdSense account.
- Create an ad unit and copy its code.
- 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. This isn't currently possible on Squarespace. 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:
- Learn best practices for adding custom code.
- Read our general guide on code-based customizations.
- For help with your ad service, contact them.
- Visit the Squarespace Forum, our customer and developer forum.
- Hire a Squarespace Expert to help build custom code for your site.
Promote your site elsewhere
If you're a new Google Ads subscriber, you can get a $100 Google Ads credit when you spend spend $25 or more. For more information, visit Redeeming your Google Ads credit.
Comments
0 comments
Article is closed for comments.