Installing the Widget
Before you start
Section titled “Before you start”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.
Installation
Section titled “Installation”Step 1: Copy the script tag
Section titled “Step 1: Copy the script tag”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.
Step 2: Publish your website
Section titled “Step 2: Publish your website”Save and publish your website changes so the script goes live.
Step 3: Verify installation
Section titled “Step 3: Verify installation”- Open your website in a browser
- Open browser developer tools (press
F12) - Go to the Network tab
- Reload the page and look for requests to
cdn.behavora.com
If you see requests — the widget is installed correctly.
Common issues
Section titled “Common issues”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.
Next step
Section titled “Next step”Now that the widget is installed, create your first banner.