Attribute Polar revenue to signups

Use the checkout link success URL, or put the visitor id in checkout metadata.

Before you start

Your Polar organization must be connected to Chartsy (Polar connection guide) and set as the site's Revenue account under Settings → domains, with the Chartsy tag on your site.

Polar buyers are matched to signups by email automatically. Pick the method below that fits how you sell to also credit buyers who pay with a different email - or never sign up. Both match by visitor id, so they keep working with GDPR mode on.

2Creating checkouts from your server: add checkout metadata

Polar copies checkout metadata onto the order it creates, so put the visitor's chartsy_visitor_id cookie there:

const checkout = await polar.checkouts.create({
  products: ['<your product id>'],
  // ...your existing options
  metadata: { chartsy_visitor_id: req.cookies.chartsy_visitor_id || '' },
});

Email matching and GDPR mode

  • Without either method, Polar buyers are still matched by email to people who signed up. Calling window.chartsy.identify({ email }) on your post-purchase page works too.
  • With GDPR mode on for the Polar source, no emails are stored, so email matching stops - the two methods above keep working.

Related articles

Chartsy Team

Written by

Chartsy Team

Analytics team at Chartsy

The Chartsy Team writes guides, product updates, and resources to help SaaS and eCommerce founders make sense of their metrics, without SQL or spreadsheets.

Chartsy
Ministry of Economy and Innovation
Startup Albania

The Chartsy program is realized with the financial support of the Albanian Government through the Ministry of Economy and Innovation, under the Grant 2026 scheme, and is implemented by the Innovation4Albania Agency.