The iPaper embed script snippet is a small piece of JavaScript that you paste in to your webpages. It enables the iPaper service to inject Pop-ups into the pages where the embed script is present.

Find your account specific embed script

  1. Log in to your iPaper account.
  2. Navigate to → ‘Pop-ups’.
  3. Click the ‘Get embed script’ button.
  4. Click ‘Copy script’ to copy the embed script to the clipboard.

The embed script modal

Insert snippet on your website

The embed script should be inserted as the last element of the <body> tag on every webpage where you want Pop-ups to show. A typical use case would be to add the embed script to all pages on your website.

If you are using some sort of CMS system, the chances are that you can use commonly shared footer element to add embed script on every page. This way you can have only one place, where the script is stored in your websites source code.

After you have added the embed script

Once the embed script is added to your website, you will start to see Pop-ups that match the URL you have defined.

Final notes on embed script

Same embed script for different Pop-ups under one license

Embed script are unique per license (login group). This means that all Pop-ups created under the same license will share the same embed script code. Therefore, there is no need to insert embed script with given API_KEY on one webpage (URL) more than once, even when there is more than one lead generation tool that should be displayed on that page.

Multiple embed scripts on same webpage

In some edge case scenarios there might be a reason to use different embed scripts (with unique API_KEY) on the same webpage. This might be the case when users from different login groups are maintaining lead generation tools for the same webpage. In such cases the rules of inserting the code into webpage stays the same: embed scripts should always be inserted as the last elements of the <body> tag.