Install guide
Add Peekaly to Squarespace
Paste one line of code into Squarespace once. Every popup you publish after that appears on your site automatically.
Steps
- Copy your codeIn Peekaly, open the install step of the setup after you sign up, or Settings → Connected sites → Install code. Your code is one script tag with your site key in it.
- Open code injectionGo to Settings → Developer tools → Code injection.
- Paste it in the headerPaste the code into the Header field.
- SaveClick Save. It applies to every page.
- Check it workedOpen your site once. Peekaly notices the script running and marks your site as connected in the dashboard. Then publish a popup and it shows up on your site.
The code
It looks like this. Copy yours from Peekaly, because it contains your own site key.
<script src="https://www.peekaly.com/embed.js" data-site-key="YOUR_SITE_KEY" defer></script>The script loads with defer, so your page renders first and Peekaly loads after it.
Questions
Which plans support code injection?
Code injection is a Squarespace feature on its paid plans. Check your plan if you don’t see it.
Do I need to paste the code again for every popup?
No. The code is the same for your whole account. Every popup you publish for that site is picked up automatically.
Will it clash with my theme’s styles?
No. Each popup is drawn inside its own shadow DOM, so your theme’s CSS can’t change the popup and the popup’s CSS can’t change your site.
How do I see a popup on my site before publishing it?
Use “Preview on my site” in the publish step. It opens your site with the popup showing, and that preview is not counted in your views or leads.