Install guide

Add Peekaly to WordPress

Paste one line of code into WordPress once. Every popup you publish after that appears on your site automatically.

Steps

  1. 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.
  2. Install a header scripts pluginGo to Plugins → Add New and install a plugin such as WPCode that adds code to your site’s header.
  3. Open the header settingsIn WPCode, open Code Snippets → Header & Footer.
  4. Paste and savePaste the code into the Header box and save.
  5. 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.

HTML
<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 WordPress plugin?

Not yet. Any plugin that adds code to the header works, and so does your theme’s header.php if you prefer editing 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.

Related