Client Side SDK

Stat Widget

The Stat Widget is a small modular widget that can be used multiple times on your website to display statistics and information about the identified participant

After completing the Installation step, use the following snippet to display the Leaderboard Widget:

<stat-widget stat="rank"></stat-widget>

If you are installing multiple campaigns on the same page make sure you also add the Campaign ID on the widget:

<stat-widget stat="rank" ucid='Your Campaign ID'></stat-widget>

You can choose the type of info you want to display on the widget by changing the required stat attribute. The widget currently supports participant statistics with more data coming soon including campaign data:


Participant Rank/Position on the Waitlist/Leaderboard/Campaign

<stat-widget stat="rank"></stat-widget>

This will display the participant's current position on your campaign


Referral count

<stat-widget stat="referrals"></stat-widget>

This will display the referral count for the currently identified participant. On conversion campaigns, only converted participants count towards increasing this number.

Pending referrals (conversion only)

<stat-widget stat="pendingReferrals"></stat-widget>

This will display the number of referrals that are pending for conversion. This number only makes sense in the context of a campaign where a referral is complete when invitees join and then take an action (e.g. complete a purchase, create an account, etc)

Templates supported

  • The Universal Referral
  • Refer a Friend