Skip to content

Black Friday Cyber Monday

30% off all plans

Ends in 00d00h00m00s

Claim 30% off
SourceLoop

Payments integration

Polar revenue attribution for developer products

Selling a CLI, a library license, sponsorships, or a dev-tool subscription through Polar? SourceLoop shows whether each sale came from a GitHub README, a Hacker News post, your docs, a newsletter, or an ad, and keeps crediting it as subscriptions renew.

Free 7-day trial. No credit card required.

Connection
Webhook + checkout metadata
Checkouts
Checkouts API or Checkout Links
Products
Subscriptions, products, sponsorships
Other endpoints
Unaffected
SourceLoop Trials report showing trial starts and conversions to paid by channel

How does Polar revenue get attributed to channels?

Polar gets marketing attribution from SourceLoop through a webhook and checkout metadata. Polar's webhook sends orders, subscription changes, renewals, cancellations, and refunds; SourceLoop's first-party tracker supplies visitor identifiers that you attach to checkouts created with the Polar Checkouts API or append to static buy.polar.sh Checkout Links. Each order and every renewal order.created event joins the original visitor's channel, campaign, and pages, so MRR and revenue are reported by source, and purchases can be reported as conversions to Meta, Google Ads, ChatGPT Ads, and Microsoft Ads.

Updated November 2026

The gap

Developer traffic is hard to trace to Polar sales

  • Buy links live outside your site

    Checkout Links get pasted into READMEs, Discord, and docs, so purchases often arrive with no visit history at all.

  • Developers rarely click ads, then buy

    The real path is a GitHub star, a docs page, a Hacker News thread, then a purchase weeks later. Polar records the purchase, not the path.

  • Renewals lose their origin

    Subscription revenue keeps coming in, but nothing ties each renewal back to the channel that produced the first order.

What you get

What Polar sales gain from SourceLoop

  • Every sale with its channel

    Orders arrive with the buyer's acquisition channel, campaign, landing page, and the docs or pages they read first, and the customer can sync to your CRM with that source.

  • Renewals stay with the first source

    Each recurring order.created event joins the subscriber's existing contact, so MRR builds on the channel that earned the signup.

  • Sponsorships and paid issues too

    Whether Polar hosts a sponsorship, a paid issue, a product, or a subscription, events flow through the same webhook and are attributed alike.

  • Cancellations and refunds handled

    subscription.canceled and subscription.revoked are recorded as state changes, and refunds come off the original channel's revenue.

  • Compare dev channels on revenue

    GitHub, Hacker News, Reddit, docs SEO, newsletters, and ads side by side on revenue and ROAS, with first-touch or multi-touch attribution models.

The data

Polar buyers, in detail

Polar's order events meet the browsing history SourceLoop captured beforehand.

FieldExampleWritten to
Where the buyer came from Referral · github.com Contact
Campaign tags utm_source=hn, utm_campaign=launch Contact
Landing page and referrer /docs/quickstart · news.ycombinator.com Contact
Visits before buying 5 visits · 3 docs pages Journey
Order and subscription history Orders, renewals, cancellations, refunds Contact

Compared

Polar's dashboard vs UTM-tagged Checkout Links vs SourceLoop

UTM-tagged Checkout Links means adding your own parameters to every buy.polar.sh link you share and reading them back from order metadata.

Capability Polar dashboard Tagged Checkout Links SourceLoop
Acquisition channel per order No Partly Only tagged links Yes From the visit
Docs and pages read before buying No No Yes Full path
Renewals credited to the first channel No No Yes Every cycle
Refunds netted per channel Partly Account totals No Yes Against the lead
Purchases reported to ad platforms No No Yes Server-side

Why it holds up

Attribution that respects how developers buy

Long research, lots of docs, few ad clicks. SourceLoop records that journey first-party on your site and links every Polar event back to it on its servers.

No-code setup

Just a webhook and checkout metadata, no SDK swap

First-party signal

Visitor history kept first-party on your docs and site

Server-side

Purchases sent to ad platforms server-side

Full journey

Docs pages read before the first order

Revenue

MRR by community and channel

How it works

Connect Polar in four steps

Code for the Checkouts API and Checkout Links is in How to track lead source in Polar.

  1. <script async src="https://t.sourceloop.ai/tracking-v3.js"></script>
    01

    Add SourceLoop to site and docs

    Install the script on your marketing site and docs so visits are recorded before checkout.

  2. Webhook

    Polar · Settings

    • URL SourceLoop
    • Events Orders, subscriptions
    02

    Add a Polar webhook

    In the Polar dashboard, add a webhook pointing at SourceLoop's URL with the events from the Polar drawer.

  3. Webhook secret

    Stored encrypted

    • Secret ••••••••
    • Status Valid
    03

    Paste the signing secret

    Copy the webhook's secret into SourceLoop so it can check every event is from Polar.

  4. K

    [email protected]

    Pro license · $12/mo

    • Channel GitHub / Referral
    • Campaign launch
    • Renewals 8
    04

    Pass metadata to checkout

    Attach the tracker's identifiers when creating a checkout through the API, or patch them onto Checkout Links.

Conversion sync

Report Polar purchases to your ad accounts

Send orders, new subscribers, or every renewal with its value to Microsoft Ads, Google Ads, ChatGPT Ads, and Meta as offline conversions, so the campaigns you do run optimise for paying developers.

  • Each order
  • New paying subscribers
  • Every recurring payment

Used by 750+ marketing teams, agencies, and SaaS companies

  • Bennett
  • Vectivo
  • Siite
  • Huemor
  • Infludata
  • Wonsulting
  • Orchly
  • PacificCrest
  • ReachTopCPA
  • BrassAnimals
  • TechCXO

FAQ

Polar attribution FAQ

Does it work with the Polar Checkouts API and Checkout Links?

Yes. Both use the same webhook. They differ only in how attribution is wired: metadata on API-created checkouts, or parameters patched onto static Checkout Links.

Are renewals credited to the original source?

Yes. Every order.created event from a recurring cycle attaches to the contact who subscribed, so MRR stays with the channel behind the signup.

How are cancellations and refunds handled?

subscription.canceled and subscription.revoked are recorded as state changes on the contact, and refunds reduce the attributed revenue of the original source.

I use Polar for sponsorships and paid issues. Is that different?

No. Sponsorships, paid issues, products, and subscriptions all flow through the same webhook and are attributed the same way.

My Checkout Link is in a GitHub README. Are those sales attributed?

They're captured through the webhook, but with no visit to your site first they show as Direct. Patch the link with the tracker's parameters, or send readers through a tracked page.

Will my other Polar webhooks keep working?

Yes. SourceLoop is its own endpoint, so Slack, your backend, and any other destination keep receiving events.

Track every conversion to its true source

Capture and send full attribution data from every signup, lead, booking, and sale to your CRM and ad platforms, so you know exactly what's driving revenue.

Without SourceLoop

Untagged

Kayden Floyd

kayden@abc.com

  • SourceUnknown
  • MediumUnknown
  • CampaignUnknown
  • Landing pageUnknown
Journey
No touchpoints captured

With SourceLoop

Auto-tagged

Kayden Floyd

kayden@abc.com · Acme Co.

  • Channel Paid Social
  • CampaignFree_demo
  • Landing page/pricing
Journey
Synced to HubSpot Google Ads Meta