Waitlist

Leaderboard Embed

Example leaderboard embedded on a website

The leaderboard embed lets you display your top referrers on any website — separately from your sign-up form. It's ideal for landing pages, blog posts, community sites, or anywhere you want to showcase engagement and drive competition around your referral program.

Requirements

The leaderboard embed is available on paid plans, starting from the Launch plan. If the owner of a waitlist is on the Free plan, the embed will display an "upgrade required" message instead of the leaderboard.

Your waitlist must have at least one subscriber with referrals (or points, depending on your chosen metric) for the leaderboard to show any data. Otherwise, visitors will see an empty state.

Embedding Your Leaderboard

There are two simple steps to embed your leaderboard on any website.

1. Add Script to Head

First, add the Waitlister leaderboard embed script to your website's <head> section.

<script src="https://waitlister.me/js/embed-leaderboard.js" defer></script>

The script is the same for all leaderboards.

2. Add Leaderboard Container

Next, add a div container with your unique waitlist key where you want the leaderboard to appear.

<div 
  class="waitlister-leaderboard" 
  data-waitlist-key="YOUR-WAITLIST-KEY"
></div>

You can find your waitlist key by navigating to the "Overview" page in your waitlist dashboard.

3. Your Leaderboard is Ready

That's it. The leaderboard will automatically render, fetch the current top referrers, and resize to fit its content.

Customization

Unlike the form, there is no dashboard editor for the leaderboard embed. Instead, you customize it entirely through data-* attributes on the container div. This keeps the embed lightweight and lets you iterate on styling directly in your site's code.

Basic Example

<div 
  class="waitlister-leaderboard" 
  data-waitlist-key="YOUR-WAITLIST-KEY"
  data-positions="20"
  data-title="Top Referrers"
  data-accent-color="#ff5733"
></div>

Dark Theme Example

<div 
  class="waitlister-leaderboard"
  data-waitlist-key="YOUR-WAITLIST-KEY"
  data-positions="10"
  data-title="Leaderboard"
  data-bg-color="#0f172a"
  data-text-color="#e5e7eb"
  data-title-color="#ffffff"
  data-border-color="#1e293b"
  data-border-radius="16"
  data-accent-color="#3b82f6"
  data-badge-shape="rounded"
></div>

Minimal Example

<div 
  class="waitlister-leaderboard"
  data-waitlist-key="YOUR-WAITLIST-KEY"
  data-positions="5"
  data-show-title="false"
  data-padding="8"
  data-max-width="360"
  data-border-width="0"
></div>

Customization Reference

All attributes are optional. If omitted, the default value is used.

Data

AttributeTypeDefaultDescription
data-positionsnumber (1-50)10Number of entries to display
data-metricreferrals or pointsreferralsWhich value to show next to each entry

Layout

AttributeTypeDefaultDescription
data-alignmentleft, center, or rightcenterHorizontal alignment of the leaderboard and title
data-paddingnumber (0-64)16Inner padding in pixels
data-max-widthnumber (240-1200)480Maximum width of the leaderboard in pixels

Title

AttributeTypeDefaultDescription
data-show-titletrue or falsetrueWhether to display the title
data-titlestringLeaderboardTitle text
data-title-colorcolor (hex)#111111Title text color
data-title-sizenumber (10-48)20Title font size in pixels
data-title-weightnumber (100-900)600Title font weight
data-title-font-familystringfont-poppinsTitle font family

Body

AttributeTypeDefaultDescription
data-text-colorcolor (hex)#333333Body text color
data-body-font-familystringfont-open-sansBody font family
data-body-sizenumber (10-24)14Body font size in pixels

Container

AttributeTypeDefaultDescription
data-bg-colorcolor (hex)#ffffffBackground color
data-border-colorcolor (hex)#e5e7ebBorder color
data-border-widthnumber (0-8)1Border width in pixels
data-border-radiusnumber (0-32)8Border radius in pixels

Rows

AttributeTypeDefaultDescription
data-row-alt-bgtrue or falsefalseEnable alternating row background colors
data-row-bg-colorcolor (hex)transparentBackground color for standard rows
data-row-alt-colorcolor (hex)transparentBackground color for alternating rows (when enabled)

Position Badge

AttributeTypeDefaultDescription
data-accent-colorcolor (hex)#3b82f6Background color of the position badge
data-badge-shapecircle, square, or roundedcircleShape of the position badge

Labels

Override the default column headers. Useful for custom wording or languages not yet supported.

AttributeTypeDefaultDescription
data-position-labelstring#Header text for the position column
data-email-labelstringEmailHeader text for the email column
data-referrals-labelstringReferralsHeader text for the referrals/points column
data-empty-textstringNo subscribers yetText shown when there are no entries

Behavior

AttributeTypeDefaultDescription
data-refresh-intervalnumber (0 or 60-3600)300Auto-refresh interval in seconds. Set to 0 to disable. Minimum 60 seconds
data-languagestringenLanguage code for default labels (matches the languages supported in your form)

Multiple Leaderboards on One Page

You can embed multiple leaderboards on the same page, including from different waitlists. Each div is independent and can have its own customization.

<div 
  class="waitlister-leaderboard" 
  data-waitlist-key="WAITLIST-KEY-A"
  data-title="Top Referrers"
></div>

<div 
  class="waitlister-leaderboard" 
  data-waitlist-key="WAITLIST-KEY-B"
  data-title="Most Points"
  data-metric="points"
></div>

Privacy

Subscriber emails are automatically scrambled before being displayed. For example, [email protected] appears as j*****@e*****.com. No personal information is exposed to visitors.

Auto-Resize

The leaderboard automatically calculates its height based on the number of entries and your customization. If you change data-positions or any styling later, the iframe resizes itself to fit the new content. You do not need to specify a fixed height.

Troubleshooting

The leaderboard shows an empty state: Your waitlist has no subscribers with referrals yet. Once someone signs up through a referral link, they'll appear on the leaderboard.

I see "Leaderboard embed unavailable": The waitlist owner is on the Free plan. Upgrading to Launch or higher will enable the embed.

The leaderboard isn't appearing: Check that the embed script is in your <head> section and that your container div has both the waitlister-leaderboard class and a valid data-waitlist-key attribute.

Colors look off on a dark background: Make sure to customize data-text-color and data-title-color alongside data-bg-color to keep text readable. If you use data-row-alt-bg="true", also set data-row-alt-color to a color that contrasts with your text.

Help and Support

Need assistance with your leaderboard embed? We're here to help.

Get started for free

Start collecting sign ups for your product launch in minutes — no coding required.