Install guide
Add Peekaly to Shopify
Paste one line of code into Shopify 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 your theme codeIn Shopify admin, go to Online Store → Themes, click ⋯ next to your current theme, then Edit code.
- Open theme.liquidIn the Layout folder, open theme.liquid.
- Paste and savePaste the code just before the closing </head> tag and click Save.
- 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
Is there a Shopify app?
Not yet. For now the code goes into your theme once, which takes about two minutes. If you switch themes, add it to the new theme too.
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.