Polar

Integration

Polar Revenue Attribution for Open Source

Monetizing your open-source project with Polar? DataSaaS shows you which GitHub referrals, blog posts, and social shares actually convert into paying supporters.

Start free trial

How to set up

  1. 1

    Open Revenue Settings

    Navigate to Dashboard → Settings → Revenue and select Polar as your payment provider.

  2. 2

    Enter your Polar API key

    Generate an API key in your Polar dashboard under Settings. Paste it into DataSaaS. The key is encrypted at rest and used only to fetch your order and subscription data.

  3. 3

    Pass visitor ID in checkout flow

    Include the DataSaaS visitor ID when directing users to your Polar checkout. This connects each purchase or subscription to the visitor's traffic source.

    // Add visitor ID to your Polar checkout link
    const visitorId = getCookie('datasaas_visitor_id');
    const checkoutUrl = `https://polar.sh/yourproject/subscribe?ref=${visitorId}`;
  4. 4

    Verify the connection

    Complete a test transaction on Polar. The order should appear in your DataSaaS revenue dashboard within seconds, attributed to the originating traffic source.

What you get

  • Revenue Per Visitor (RPV) for every traffic source including GitHub referrals
  • Track which README links, blog posts, and tweets drive paying supporters
  • Subscription and one-time purchase tracking with full source attribution
  • Revenue breakdowns by country, referrer, and campaign
  • Identify which open-source contributions or releases drive the most revenue
  • Combine Polar data with Stripe or LemonSqueezy for a complete revenue picture

Frequently asked questions

What types of Polar transactions does DataSaaS track?

DataSaaS tracks all Polar transaction types: one-time purchases, recurring subscriptions, and donations. Each transaction is matched to a visitor and attributed to their original traffic source.

Can I see which GitHub pages drive the most revenue?

Yes. If visitors come from GitHub (your README, issues, discussions, or profile), DataSaaS tracks GitHub as the referrer and shows you exactly how much revenue each GitHub page generates.

Does this work for open-source projects with free tiers?

Absolutely. DataSaaS tracks all your traffic regardless of whether visitors convert. You can see conversion rates from free visitors to paid supporters by traffic source, helping you focus on channels with the highest conversion potential.

Connect Polar in minutes

Start your 14-day free trial. No credit card required.

Start free trial