# Add Widgetjoy to Squarespace

Paste one line into Code Injection’s Footer box, then save.

Footer

```
<script src="https://widgetjoy.com/s/your-site.js" async crossorigin></script>
```

Your Dashboard shows this line with your own site in it.

## Three steps in Squarespace

### Open code injection

Settings → Advanced → Code injection. It needs a plan that allows it.

### Paste it into Footer

Save.

### Load a page of your site

Your Dashboard's Install screen turns green once your site has loaded Widgetjoy.

## How to check it works

1. Load any page of your published site.
2. Your Dashboard’s Install screen turns green once your site has loaded Widgetjoy.

## Then add a widget

- [Announcement Bar](https://widgetjoy.com/widgets/announcement-bar) Say one thing at the top or bottom of every page, and let visitors dismiss it.
- [Contact Form](https://widgetjoy.com/widgets/contact-form) Let visitors send you a message, with the fields you choose, straight to your Inbox.
- [Countdown Timer](https://widgetjoy.com/widgets/countdown-timer) Show the time left until a moment you choose, and what happens when it runs out.
- [Chat Button](https://widgetjoy.com/widgets/chat-button) Hand visitors to a chat on WhatsApp or Telegram, from a corner or your page.
- [Popup](https://widgetjoy.com/widgets/popup) Interrupt deliberately, on a trigger you choose and a cadence visitors can bear.
- [Newsletter Signup](https://widgetjoy.com/widgets/newsletter-signup) Grow a mailing list, with consent evidence recorded against every signup.
- [FAQ](https://widgetjoy.com/widgets/faq) Answer the questions that would otherwise become support tickets.
- [Review Us](https://widgetjoy.com/widgets/review-us) Ask every customer for a review, with one button to your review page.
- [Pricing Table](https://widgetjoy.com/widgets/pricing-table) Lay out plans side by side, with the emphasis where it earns its keep.

## Questions

Something else? [Write to us](mailto:hello@widgetjoy.com).

### Why isn’t it on my site yet?

Code injection needs a plan that allows it. Check yours, then load a page.

### Where in the page does it go?

Anywhere works. The line loads after your page, so it never holds it up.

### My site sets a security policy.

Allow https://widgetjoy.com in script-src and connect-src. If your policy uses a nonce with 'strict-dynamic', which ignores addresses in script-src, give the line your page’s nonce as its nonce attribute instead, and keep https://widgetjoy.com in connect-src.

### My site turns its scripts into modules, as Astro does.

Keep the line as it is, with async. In Astro, add is:inline to the tag, so Astro leaves it as written. Made a module (type="module"), the script cannot find its own tag, and no Widget shows.

### Can the line be pinned to a version, with an integrity value?

Not yet. The line has no version so that every fix reaches your pages the day it ships, with nothing for you to change; a pinned copy would stay as it was, and an integrity value checks the loader alone, not the widgets it then loads. If your security policy asks for one, write to us.

### My site uses a cookie consent tool.

Widgetjoy sets no cookies. A visitor's browser keeps up to four notes on your site's own address, and nothing about the visitor: widgetjoy:dismissed:…, so a bar, a countdown or a popup they closed stays closed for its time; widgetjoy:started:…, so a countdown that gives each visitor their own time does not start again on every page; widgetjoy:kept, the list of those notes, so the ones of a widget your site no longer shows can be forgotten; and widgetjoy:shown:…, which leaves with the tab, so a popup opens once a visit. If your tool lists browser storage, list all four as strictly necessary.

### My site has a header fixed to the top.

Give it top: var(--widgetjoy-top-offset, 0px), and give html scroll-padding-top: var(--widgetjoy-top-offset, 0px). The offset is the height of every bar at the top, 0px when there is none, so the header stays whole under a bar and a link or field the keyboard moves to is never hidden behind it. A bar at the foot has --widgetjoy-bottom-offset.
