# Event: donation-intent
# DNA-27 / RFC-0027
#
# Top-of-funnel signal: visitor expressed intent to donate (clicked a donate CTA,
# scrolled to the donation section, or opened the donation form page).

id: donation-intent
label: Donation Intent
description: >
  A visitor expressed intent to donate. This is the first step in the donation
  funnel and is a top-of-funnel conversion signal. Emit when the visitor
  reaches the donation page or clicks a primary donate CTA.

category: donation
autoEmit: false

payload:
  locale:
    type: string
    description: Active locale
    required: true
  amountCents:
    type: number
    description: Intended donation amount in the smallest currency unit (e.g. cents). 0 or absent if unknown at this stage.
    required: false
  currency:
    type: string
    description: "ISO 4217 currency code (e.g. 'EUR'). Absent if not yet selected."
    required: false
