Skip to main content

Why does Lago need data?

We decided to open-source the billing API we would have wanted to use. Because Lago is a self-hosted product, we cannot easily collect the usage metrics and insights that help us build a better product. This analytics data helps us understand how Lago is used and ship better quality to serve your needs. Lago tracks a small set of behaviors and metrics by default. The tracking plan is kept to the minimum needed, to limit the security impact of collecting those events. Every metric collected is listed below, and none of them carries financial information such as invoice amounts. Lago collects the metrics with the Segment server-side Ruby library.
Lago does not collect any financial information about your customers or your invoices.

Opting out

Keep tracking enabled unless you have a specific reason to opt out. It is the easiest way for Lago to get feedback based on product usage. If you need to opt out, set the LAGO_DISABLE_SEGMENT environment variable to true. This prevents the entire tracking logic from running in your application.

Detail of events collected by Lago

Lago tracks the following events:
  • organization_registered: when you create your organization by signing up to Lago
  • billable_metric_created: whenever you create a new billable metric
  • plan_created: whenever you create a new plan
  • add_on_created: whenever a new add-on is created
  • credit_note_issued: when a new credit note is issued for a customer
  • refund_status_changed: when the refund status of a credit note changes
  • billing_entity_created: when a new billing entity is created
  • webhook_endpoint_created: when a webhook endpoint is created
  • webhook_endpoint_deleted: when a webhook endpoint is deleted

Detail of data collected about your organization

By default, we collect data of your organization that you used in the signup form:
  • Your organization’s email; and
  • Your organization’s name.
By opting out, your organization’s data won’t be tracked anymore.

Examples of collected payloads

billable_metric_created

organization_registered

credit_note_issued