Installing the code

Copy your website's install code from the app and paste it once on every page. One code runs every campaign on that website.

Each website you add in Tafsee Popup has its own install code. You paste it once. After that you publish, pause and change campaigns from the app, with no more code.

Websites, with Show install code on each site
Websites, with Show install code on each site

What you need

  • The website added under Websites. See Organisations and websites.
  • Access to your site's theme, template or its site-wide custom code box.

Steps

  1. Open Websites and click Show install code on your website.
  2. Copy the code. It looks like this, with your own site key in place of pk_your_site_key:
<script>
  (function (w, d, s, id) {
    if (d.getElementById(id)) return;
    var js = d.createElement(s); js.id = id; js.async = true;
    js.src = 'https://popup.beta.tafsee.com/embed/v1.js';
    js.dataset.site = 'pk_your_site_key';
    d.head.appendChild(js);
  })(window, document, 'script', 'tafsee-popup');
</script>
  1. Paste it once so that it is on every page of your site. The best place is the template that all pages share, just before the closing </body> tag, or your platform's site-wide custom code box.
  2. Save and publish your site.
  3. Back in the app, click Check my site.
The install code window
The install code window

The app's own screens say "before </head>" in some places and "before </body>" in others. Both work: the code loads the script without holding the page up. What matters is that it is on every page, once.

Your platform

The app recognises some platforms from your homepage and puts the matching guide first. Step-by-step articles:

A box that takes JavaScript only

Some platforms (Salla, for example) have a box for plain JavaScript. For these the app shows The same code, without the <script> tags. Paste that version.

Someone else installs it

Click Send to my developer under the code. See Checking the install.

What you should see

The website's card changes from Needs the install code to Code installed. Live campaigns start showing to visitors.

If it does not work

Related

Last updated: October 12, 2026

Lead Generation

Tafsee Popup

Popups, spin-to-win wheels, countdown bars and exit-intent offers for any website — in English and native Arabic.

⚡ Native Arabic, never priced by pageviewsBilingual supportFree plan · 14-day trial
+966 58 267 6110+966 58 267 6110