Skip to content

Installing the Widget

You will need:

  • Access to edit your website’s HTML
  • Your Site ID and API Token from the Behavora admin panel

To find your credentials: go to Settings → API Access in the admin panel.

Add the following code to your website, just before the closing </body> tag:

<script
src="https://cdn.behavora.com/widget.js"
data-site-id="YOUR_SITE_ID"
data-token="YOUR_API_TOKEN"
defer
></script>

Replace YOUR_SITE_ID and YOUR_API_TOKEN with your actual credentials from the admin panel.

Leave the defer attribute as-is — it ensures the widget loads without slowing down your page.

Save and publish your website changes so the script goes live.

  1. Open your website in a browser
  2. Open browser developer tools (press F12)
  3. Go to the Network tab
  4. Reload the page and look for requests to cdn.behavora.com

If you see requests — the widget is installed correctly.

The script tag is not loading Make sure the src URL is correct and your website is published.

Banners are not showing Check that you have at least one active banner in the admin panel with targeting rules that match your visitors.

Now that the widget is installed, create your first banner.