Unterstützung/Revenue Attribution
Revenue Attribution

Attribute revenue with Dodo Payments

Before proceeding, confirm that you have installed the Flowsery tracking script.

1. Store the Flowsery visitor ID with the checkout

If you have access to the Flowsery cookies, capture _fs_vid and optionally _fs_sid when the checkout session is created so you can forward them later as visitorUid and sessionUid.

2. Create a Flowsery API key

Generate an API key from Website Settings → API.

3. Forward successful payments to the Flowsery Payment API

JavaScript
function handler(webhook) {
  if (webhook.eventType !== 'payment.succeeded') {
    return null;
  }
 
  const payment = webhook.payload.data;
 
  webhook.url = 'https://analytics.flowsery.com/api/v1/payments';
  webhook.payload = {
    amount: payment.total_amount / 100,
    currency: payment.currency,
    transactionId: payment.payment_id,
    visitorUid: payment.metadata?._fs_vid,
    sessionUid: payment.metadata?._fs_sid,
    email: payment.customer?.email,
    name: payment.customer?.name,
    customerId: payment.customer?.id,
  };
 
  return webhook;
}

Use the Flowsery Payment API field names exactly. _fs_vid by itself is just where you may source visitorUid; it is not the API field name.