Payment Links
When to Use This
Step 1: Add the Scripts
<!-- PromoteBoost Tracker -->
<script src="https://api.promoteboost.com/tracker.js" data-org="YOUR_ORG_ID"></script>
<!-- Payment Links Attribution -->
<script>
document.addEventListener("DOMContentLoaded", function () {
setTimeout(function () {
const referralId = window.promoteboost_referral;
if (!referralId) return;
// Stripe Payment Links
document.querySelectorAll('a[href^="https://buy.stripe.com/"]').forEach(function (link) {
if (!link.href.includes("client_reference_id")) {
const separator = link.href.includes("?") ? "&" : "?";
link.href += separator + "client_reference_id=" + referralId;
}
});
// Stripe Pricing Tables
document.querySelectorAll("stripe-pricing-table").forEach(function (element) {
element.setAttribute("client-reference-id", referralId);
});
// Stripe Buy Buttons
document.querySelectorAll("stripe-buy-button").forEach(function (element) {
element.setAttribute("client-reference-id", referralId);
});
}, 1500);
});
</script>Step 2: That's It!
Why the 1500ms Delay?
Platform-Specific Instructions
Webflow
Framer
Carrd
Squarespace
Testing
Troubleshooting
Problem
Solution
Done!
Last updated