iPaper Embed Script (Pop-ups)
Last updated
Last updated
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.
Log in to your iPaper account.
Navigate to → ‘Pop-ups’.
Click the ‘Get embed script’ button.
Click ‘Copy script’ to copy the embed script to the clipboard.
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.
Note:
Browser loads webpages progressively, which means that the resources are loaded in order of their occurrence in the source code. It is a good practice to place nonessential scripts as the last elements of the webpage
Note:
You don’t need the embed script when adding Pop-ups to your Flipbooks
Once the embed script is added to your website, you will start to see Pop-ups that match the URL you have defined.
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.
Note:
You don’t need the embed script when adding Pop-ups to your Flipbooks
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.