Wholix Lead Finder + Email Sample Widget

Installation guide for affiliates and internal teams building landing / sales pages.

What it does

The widget combines two things in one flow: a lead finder and a personalized email sample generator. A visitor enters their own website URL and an email address. Wholix analyzes the website, finds 3 matching decision-makers at relevant target companies, and generates a complete 3-step outreach email sequence for each lead — fully personalized to the visitor's offer and the lead's context. The visitor receives a link to the full results in their inbox. You get a qualified lead, attributed to you via your affiliate ID.

1. Install

Where to paste the snippet depends on the layout you choose:

Required: replace these values

AttributeDescription
data-affiliate-idYour unique affiliate identifier. Used for attribution and reporting. Ask Wholix if you don't have one yet.
data-localeLanguage for the widget UI and the generated emails. One of: de-DE, en-US, en-GB, es-ES, fr-FR, it-IT.
data-ctaThe visible call-to-action text. For inline-form it's the headline above the form. For button it's the button label. Translate this yourself to match your page language and audience.
data-styleEither inline-form (form embedded in the page) or button (floating button bottom-right).

2. Choose a layout

Option A — Inline form (recommended for sales pages)

Renders a form directly in your page where the script tag is placed. When the visitor submits a URL, a modal opens asking only for their email.

<script
  src="https://dev.wholix.ai/widgets/leads-and-email-samples.js"
  data-affiliate-id="YOUR_AFFILIATE_ID"
  data-style="inline-form"
  data-locale="en-US"
  data-cta="Hol dir kostenlose Leads & E-Mail-Beispiele">
</script>

Live demo below ↓

Option B — Floating button

Adds a fixed CTA button in the bottom-right corner of every page. When clicked, opens a modal with both URL and email inputs. Good for blogs and content sites where you want a persistent call to action.

<script
  src="https://dev.wholix.ai/widgets/leads-and-email-samples.js"
  data-affiliate-id="YOUR_AFFILIATE_ID"
  data-style="button"
  data-locale="en-US"
  data-cta="Get FREE leads & sample mails">
</script>

Live demo: see the orange button in the bottom-right of this page.

3. Place the inline form where you want it

By default the inline form renders at the position of the script tag. To place it somewhere else on the page, give a target element an id and add data-placement:

<div id="wholix-mount"></div>
<!-- ...rest of your page... -->
<script
  src="https://dev.wholix.ai/widgets/leads-and-email-samples.js"
  data-affiliate-id="YOUR_AFFILIATE_ID"
  data-style="inline-form"
  data-placement="#wholix-mount"
  data-locale="en-US"
  data-cta="Get free email samples">
</script>

4. Track conversions (optional)

When a visitor successfully submits the form, the widget fires a wholix:lead event on the host page. Use this to forward conversions to Google Analytics, Facebook Pixel, or your own tracking.

window.addEventListener('wholix:lead', (e) => {
  console.log('Lead captured:', e.detail);
  // e.detail = {
  //   url, email (masked), affiliate_id,
  //   sample_request_id, result_url
  // }

  // Example: Google Analytics 4
  gtag('event', 'generate_lead', {
    affiliate_id: e.detail.affiliate_id,
    value: 1
  });
});

The email in the event payload is masked (e.g. v***@example.com) to avoid leaking PII to third-party trackers. The full email is only stored on Wholix servers.

5. Test it

  1. Add the snippet to your page
  2. Open the page in your browser
  3. Submit a real website URL and a real email you can access
  4. Check your inbox — you should receive a confirmation email with a link to the results
  5. Click the link to verify the full results page renders

What the visitor sees after submitting

The flow has two stages — a public preview and a full results page unlocked via email confirmation:

  1. Preview page — immediately after submitting, the widget shows a link to a public results page. This page polls the status while Wholix is generating the leads and email sequences. Generation usually takes a few minutes but can take 30 minutes or more during busy periods — visitors don't have to wait, they can close the page and return via the link in their email when ready. Once results are in, the page displays a masked preview: lead names and companies are partially hidden, only the first email is shown with a faded body, follow-up emails and the strategic hook analysis are locked.
  2. Full results page — at the same time, Wholix sends a confirmation email to the visitor with an unlock link. Clicking that link opens the same results page but with everything revealed: full lead names and contact info, all 3 emails per lead in full, and the complete hook analysis. This step also confirms the email address is real and active.

This two-stage flow gives visitors instant gratification (they see something is being generated) while protecting the most valuable content behind email verification — which is what makes the lead qualified.

FAQ

Does it slow down my page?

The loader script is small (a few KB) and loads asynchronously. The widget itself only loads when a user interacts with it.

Can I style the widget to match my brand?

Not yet — the widget uses Wholix's standard look (orange primary color). Brand customization is on the roadmap.

What happens if a visitor submits without confirming the email?

They get a confirmation email with a link to a preview of the results. The full results are only revealed when they click the link in their inbox. This both verifies the email is real and prevents the public preview link from being shared.

Where is my affiliate ID tracked?

It's sent to the Wholix backend with every submission and stored alongside the lead. You will be able to see your attributed leads and conversions in your Wholix affiliate dashboard (coming soon).

Need help?

Contact support@wholix.ai with your affiliate ID and a link to the page where you're embedding the widget.