PoplituDocs
Distribution

Install on your platform

Where to paste the Poplitu script on WordPress, Shopify, Webflow, Wix, Squarespace, Google Tag Manager, React and Next.js, step by step.

Whatever you build your site with, the job is the same: put the Poplitu script where it loads on every page, near the end. Get your snippet first, from Console → Embed (choose Generate embed key if you have not made one).

It looks like this, with your own key:

<script
  src="https://js.poplitu.com/sdk/loader.min.js"
  data-api-key="YOUR_EMBED_KEY"
  async
></script>

These steps follow each platform's own menus, which they change from time to time. If a name differs, look for the place that adds code to the end of every page. After any of them, open a page of your site and check the form appears: see My popup is not showing if it does not.

WordPress

Use a plugin that adds code to your site's footer, for example WPCode, and paste the snippet into its footer box. A plugin keeps the snippet when you change theme. If you would rather edit the theme, add the snippet to the footer file just before </body>.

Shopify

  1. In your Shopify admin, open Online Store → Themes.
  2. On your live theme, choose ⋯ → Edit code.
  3. Open layout/theme.liquid.
  4. Paste the snippet just above the closing </body> tag, and save.

Webflow

  1. Open your site's Settings, then Custom code.
  2. Paste the snippet into Footer code.
  3. Save, and publish the site.

Custom code needs a paid site plan.

Wix

  1. Open Settings → Custom Code, and choose Add custom code.
  2. Paste the snippet and set it to load on All pages, in Body – end.
  3. Apply it, and publish the site.

Custom code needs a premium plan.

Squarespace

  1. Open Settings, then Code Injection (it may sit under Developer Tools).
  2. Paste the snippet into the Footer box and save.

Code injection needs a plan that includes it.

Google Tag Manager

  1. In your container, create a new tag of type Custom HTML.
  2. Paste the snippet.
  3. Set the trigger to All Pages, and publish the container.

Use Tag Manager's Preview mode and check the form appears before you publish.

React and Next.js

In Next.js, load the script once from your root layout with the Script component, and give it your key:

import Script from 'next/script';

<Script
  src="https://js.poplitu.com/sdk/loader.min.js"
  data-api-key="YOUR_EMBED_KEY"
  strategy="afterInteractive"
/>;

In a React app without Next.js, add the plain snippet to index.html before </body>.

Because the script runs when the first page loads, test that your forms show up as visitors move between pages of the app.

Plain HTML

Paste the snippet into your page just before the closing </body> tag.

Frequently asked questions

Does Poplitu work with WordPress, Shopify, Webflow and Wix?

Yes. You paste one script where your site loads code on every page, near the end. This page has the steps for WordPress, Shopify, Webflow, Wix, Squarespace, Google Tag Manager, React and Next.js.

Do I need a paid plan on my website builder?

For Webflow, Wix and Squarespace, adding custom code needs a plan that includes it: a paid site plan on Webflow, a premium plan on Wix, and a plan with code injection on Squarespace.

On this page