Skip to main content

Install the SDK

The SDK is a small piece of code that lives on your website. Once it's in place, Signal Sparrow can quietly notice where each visitor came from — for example, which ad or campaign they clicked.

Not a developer?

That's completely fine. This page is the one to hand to whoever manages your website. The whole job takes just a few minutes.

Pick the install method that matches your site:

HTML snippet — no package needed​

This is the quickest way to get started and works on any website, including no-code builders.

Copy the snippet from Settings → Tracking in your dashboard and paste it into the <head> of every page, ideally right before the closing </head> tag:

<script
async
src="https://YOUR_FIRST_PARTY_DOMAIN/i/YOUR_SCRIPT_PATH_TOKEN.js"
></script>

The dashboard shows the real URL for your workspace, so you can copy and paste it exactly.

Once the script is live, the SDK is available as window.rp. For example, after a user signs up you can identify them:

<script>
if (window.rp) {
rp.identify('user@example.com');
}
</script>
Your public key is meant to be public

Signal Sparrow has no secret key and no API key to generate — your public key (pk_live_…) is the only credential the SDK uses, and it is safe to ship in your website's code. What actually protects your workspace is the authorised domain list on Settings → Tracking: events are only accepted from the origins you allow there.

That's it​

Once the SDK is live, Signal Sparrow automatically starts noticing visits and remembering where they came from — you don't need to track anything by hand.

If you used the React or Next.js SDK, always pass endpoint. The default is the relative path /collect, which resolves against your own site — so a React or Next.js app would post its events to your server instead of ours, and nothing would arrive. The HTML snippet doesn't have this problem, because it is served from your tracking domain and resolves back to us. Copy the ready-made call from Settings → Tracking and the right endpoint is already in it.

Next, connect Stripe so those visits can be matched to real payments.

👉 Connect Stripe