OperatorStack's SDK provides a getShareLinks(referralCode) method that returns ready-to-use share URLs for Twitter, LinkedIn, WhatsApp, email, and copy-link. Call it after a successful waitlist signup, then render the links on your thank-you page to turn every subscriber into a referral channel.
Why Share Links Matter
A waitlist without share links is a dead end. Someone signs up, sees a "thanks" message, and leaves. That is a missed opportunity. Every new subscriber should immediately see a way to invite others.
Adding social share links to your thank-you page is the single easiest way to increase your referral rate. OperatorStack's SDK makes this a five-minute job.
How It Works
OperatorStack handles the entire flow: waitlist signup, referral code generation, and share link creation. Here is the process from start to finish.
Start by calling joinWaitlist when your user submits their email. The SDK returns a result object that includes the subscriber's unique referral code.
const result = await OperatorStack.joinWaitlist({
email: "user@example.com",
});
The result object contains referral_code, position, and other metadata about the signup.
Pass the referral code to getShareLinks to get platform-specific share URLs. Each URL is pre-formatted for its platform and includes the referral code as a query parameter.
const links = OperatorStack.getShareLinks(result.referral_code);
The links object contains these properties:
links.twitter: A Twitter/X intent URL with pre-filled tweet textlinks.linkedin: A LinkedIn share URL with your waitlist pagelinks.whatsapp: A WhatsApp message URL with share textlinks.email: A mailto link with subject and body pre-filledlinks.copyLink: A plain URL the user can copy to their clipboard ::
Display the links as buttons or icons on your thank-you page. Here is a simple example:
<div id="share-links" style="display: none;">
<p>Share with friends to move up the list:</p>
<a id="share-twitter" target="_blank">Share on Twitter</a>
<a id="share-linkedin" target="_blank">Share on LinkedIn</a>
<a id="share-whatsapp" target="_blank">Share on WhatsApp</a>
<a id="share-email">Share via Email</a>
<button id="copy-link">Copy Link</button>
</div>
Connect the SDK output to your HTML elements. Here is the full pattern:
const result = await OperatorStack.joinWaitlist({
email: userEmail,
});
const links = OperatorStack.getShareLinks(result.referral_code);
// Set link URLs
document.getElementById("share-twitter").href = links.twitter;
document.getElementById("share-linkedin").href = links.linkedin;
document.getElementById("share-whatsapp").href = links.whatsapp;
document.getElementById("share-email").href = links.email;
// Handle copy-to-clipboard
document.getElementById("copy-link").addEventListener("click", () => {
navigator.clipboard.writeText(links.copyLink);
alert("Link copied!");
});
// Show the share section
document.getElementById("share-links").style.display = "block";
That is the entire implementation. No API keys for each social platform, no manual URL encoding, no referral tracking logic.
If you want to override the default share text, pass an options object:
const links = OperatorStack.getShareLinks(result.referral_code, {
text: "I just signed up for ProjectName. Check it out!",
url: "https://yoursite.com",
});
The SDK handles platform-specific formatting. Twitter gets truncated to fit character limits, LinkedIn gets a clean URL preview, and email gets a proper subject line.
Tips for Higher Referral Rates
Make share links visible immediately. Do not bury them below the fold on your thank-you page. The moment someone signs up is when they are most excited about your product.
Show their position. Display "You are #47 on the waitlist" alongside the share links. Position creates urgency and gives people a reason to share (moving up the list).
Add referral incentives. Configure reward tiers in your OperatorStack dashboard. "Refer 3 friends for early access" gives people a concrete goal. The share links already include the referral code, so tracking is automatic.
Tracking Referral Performance
Every referral is tracked in your OperatorStack dashboard. You can see which subscribers are driving the most signups, which platforms generate the most referrals, and how your referral rate trends over time.
This data feeds into your unified contacts, so when you are ready to launch, you know exactly who your most engaged advocates are.
Frequently Asked Questions
What social platforms does OperatorStack generate share links for?
OperatorStack's getShareLinks method generates ready-to-use URLs for Twitter/X, LinkedIn, WhatsApp, email, and a copy-to-clipboard link. Each URL includes the subscriber's unique referral code.
Do I need to build share links manually?
No. The getShareLinks method handles URL encoding, platform-specific formatting, and referral code embedding automatically. You just pass the referral code and render the returned URLs.
Can I customize the share message for each platform?
Yes. You can pass optional parameters to getShareLinks to override the default share text and URL for each platform. The default messages are optimized for engagement but fully customizable.
How does referral tracking work with share links?
Each waitlist subscriber gets a unique referral code. When someone clicks a share link and signs up, OperatorStack automatically attributes the new signup to the referrer. You can view referral chains and set reward tiers in your dashboard.
::