On Squarespace, add the widget to the Header field of Code Injection. According to Squarespace, Code Injection is available on the Core, Plus and Advanced plans and some legacy plans.
Mark images through alt text ending in “(AI-generated)”. Checkout pages do not support custom code, so no label appears there.
Add the script tag
<script src="https://www.ai-label.app/widget.js" defer></script>
- Open the Code Injection panel in your website tools.
- Paste the script tag into the Header field. Squarespace injects code from this field into the
<head>of every page. - Click Save.
The Footer field also works; there the code sits before the closing </body>, depending on template and version. Scripts may be disabled in the editor preview, so check the label on the live site, ideally in a private window.
Mark images
Which images need a label is your decision, for example with the labelling check. The widget only labels marked images, in three ways that can be combined:
- Attribute on the image:
data-ai-label="generated"for images created entirely with AI,data-ai-label="modified"for photos edited with AI. - File name with a marker before the extension:
vase--ai.jpgorvase--ai-mod.jpg. - Alt text ending in “(AI-generated)” or “(AI-modified)”.
On Squarespace, mark images through the alt text. Image blocks, galleries and product images each have a field for it.
A file name with --ai works if Squarespace keeps it in the image address. The page source of the live site shows whether it does. Use the data-ai-label attribute only in code blocks you write yourself.
Pitfalls
- Plan: without a suitable plan there is no field for custom code, and the widget does not run.
- Alt text per block: the same image in two blocks often has two alt texts. Add the suffix everywhere.
- Galleries and slideshows: check that the label also appears in lightboxes and slideshows.
Limits of the widget
- The widget only reaches
<img>elements on pages with the script. Background images from the stylesheet and images under 48 pixels (adjustable withdata-min) stay unlabelled. - According to Squarespace, checkout pages do not support custom code, so no label appears there.
- It cannot reach emails such as order confirmations. For images outside your website, create a copy with the label burned in using Label an AI image.
- Privacy: when the script loads from ai-label.app, our host sees the IP address, as with any request. The script sets no cookies. Mention it in your privacy policy.
Native app
A dedicated Squarespace app is planned. There is no date yet.
Get notified when the Squarespace app launches
We will email you once when the app launches.
Frequently asked questions
Which Squarespace plan do I need?
According to Squarespace, Code Injection is available on the Core, Plus and Advanced plans and some legacy plans.
Why can't I see the label in the editor?
Scripts may be disabled in the editor preview. Check the live site in a private window.
Sources
Para. refers to the paragraph number in the European Commission's guidelines on Article 50, C(2026) 5054.
- Squarespace: Customize parts of your site with code injectionSquarespace · Platform · 22 Sept 2026
- Squarespace: Add alt text to imagesSquarespace · Platform · 7 Oct 2026
- Squarespace: Choose the right planSquarespace · Platform · 11 Oct 2026
- Code of Practice on Transparency of AI-Generated Content (final version)Europäische Kommission · Code of practice · 10 Jun 2026
- Regulation (EU) 2024/1689 (AI Act)EUR-Lex · Law · 12 Jul 2024

