Skip to main content

🧩 HTML Script Integration

The BTAG script is the easiest way to embed Collective Audience creatives into your adserver or page.

It automatically injects our creative container and handles tracking, click macros, and delivery.

creative-connect script


⚙️ How to Use#

1. Copy your script from the Desk#

From your creative’s “Embed” tab, select:

  • Format: HTML
  • Click Tracker: with or without tracking
  • Platform: your adserver (DV360, Adform, Xandr, etc.)

You’ll see a ready-to-use tag:

<script
src="https://tw.collectiveaudience.co/local/dist/btag.min.js?ba=YOUR_ACCOUNT_ID&bca=684a8d16c441f229093f2fef&bi=684a8d16c441f229093f2fef&bco=684a8d16c441f229093f2fef&bm=adserving&bsln=embed-684a8d16c441f229093f2fef&clk=${CLICK_URL_ENC}"
height="1px"
width="1px"
class="BeOpInject"
async
></script>

2. Configure optional parameters#

KeyDescriptionExample
BSCSS selector where the div is injected.ad-slot-1
BSLNSlot nameembed-creative123
BW / BHMax width / height300 / 250
BMMode (adserving, hardlink)adserving
DSPMDisplay mode (interstitial, expand)expand
INTDInterstitial delay (ms)3000
info

We recommend using 1×1 creative sizes for maximum flexibility and layout adaptation.


3. Platform-specific tips#

DV360 / Google Ad Manager#

  • Use the Third-party tag integration (not HTML5).
  • Disable SafeFrame to ensure full creative interactivity.

Adform / Xandr / Equativ#

  • Paste the full script directly as a 3rd party tag.
  • Ensure creative dimensions match the configured slot.
warning

HTML5 integrations are not supported with our script tag. Always use the 3rd party tag option.


✅ Validation#

Once implemented:

  • Check the creative renders properly on page load.
  • Click tracking fires through your DSP tracking system.
  • Verify via browser console: BeOpInject loaded should appear.