Installing the embed code
Snippet flavors - slot (rotates), specific-offer, coregistration, and iframe - each tailored to where you paste it.
You can paste embed code two ways. Slot snippets rotate the best-paying eligible offer for each visitor (recommended for most placements). Specific-offer snippets are hardcoded to one advertiser campaign. Pick the right one for the spot.
Slot snippet (recommended)
One snippet that rotates among eligible offers automatically. We pick the format (display ad or coreg yes/no) based on which offer wins for the visitor - you don't have to pick.
<script async src="//ads.efind.com/serve/efa.js"
data-efa-slot="YOUR_SLOT_KEY"></script>
<div id="efa-slot-YOUR_SLOT_KEY"></div>
Generate the snippet from the Slots page in your dashboard - see Rotating offer slots for the full setup.
Specific-offer snippets
If you'd rather hardcode one advertiser's campaign into a placement, the Get code page generates a snippet customized for that site + offer.
Which format do you get with a specific-offer snippet?
The snippet type is decided by the offer's campaign type. You don't pick - we render the right one.
JavaScript snippet (CPM, CPC, CPA offers)
<script async src="//ads.efind.com/serve/efa.js"
data-efa-site="YOUR_SITE_KEY"
data-efa-campaign="OFFER_ID"></script>
<div id="efa-slot-OFFER_ID"></div>
This is the most flexible option. The <div> is where the ad will appear - put it anywhere you want the unit shown. The async attribute means it won't slow down your page load.
Coregistration snippet (Coreg offers)
<div data-efa-coreg
data-site="YOUR_SITE_KEY"
data-campaign="OFFER_ID"></div>
<script async src="//ads.efind.com/serve/coreg.js"></script>
Renders the yes/no question inline where the <div> is. Best placed on a post-signup confirmation page or a thank-you page after a form submission - somewhere the user is already in a "what's next?" mindset.
Iframe fallback (any offer type)
<iframe src="//ads.efind.com/serve/iframe.php?site=YOUR_SITE_KEY&c=OFFER_ID"
width="300" height="250"
frameborder="0" scrolling="no"
title="Advertisement"></iframe>
Fixed 300×250 unit. Use this when your platform doesn't allow third-party JavaScript (some CMSes lock that down on free plans).
Where to paste it
WordPress
- Inside a post or page: switch the block editor to "Custom HTML" and paste.
- In the sidebar: add a "Custom HTML" widget under Appearance → Widgets.
- Sitewide: add it to your theme's
header.phporfooter.php, or use a plugin like "Insert Headers and Footers."
Static HTML
Paste anywhere inside the <body>. The snippet is self-contained.
Shopify / Squarespace / Wix
Each platform has its own "Custom Code" or "HTML embed" block. Drop the snippet in there. If your platform blocks scripts, use the iframe fallback.
Will it slow my page down?
The JavaScript snippets use async, which means your page renders without waiting for our script. Total payload is under 5KB; the actual ad fetch is one round-trip to our server. In our testing, sites see less than 50ms of added latency on first paint.
Does it match my site's design?
The default styling is minimal: a white card with a subtle border. The unit blends with most sites out of the box. If you want custom styling, all classes are prefixed with efa- - you can override them in your stylesheet.
Multiple offers on one page
You can run different offers in different spots on the same page. Just paste each snippet separately. Make sure each div has its unique id - we use the offer ID in the id to keep them distinct.
How do I know it's working?
Load a page on your site that has the snippet, then check Reports in your dashboard. Within a minute or two you'll see a view recorded against that offer + site combination.