Attribution

Get aggregate attribution statistics

Changed on

Returns aggregate attribution statistics for a campaign. This is a Tier 0 endpoint available to all OAuth applications with the read:attribution:aggregate scope.

Use this endpoint to:

  • Track overall marketing campaign performance
  • Measure conversion rates by UTM source/campaign
  • Monitor investment quality metrics
  • Build performance dashboards

The response includes totals and breakdowns by UTM parameters. All counts exclude disputed attributions.

Privacy: This endpoint returns aggregate data only. No individual investor information is exposed.

get/campaigns/{campaign_id}/attribution/stats

Request

  • Base URL: https://api.wefunder.com
  • URL: https://api.wefunder.com/campaigns/{campaign_id}/attribution/stats
  • Auth: OAuth 2 (authorization code, authorization URL https://wefunder.com/oauth/authorize, token URL https://api.wefunder.com/oauth/token; client credentials, token URL https://api.wefunder.com/oauth/token, scopes: read:attribution:aggregate)

Path parameters

campaign_idinteger required

The fundraise/campaign ID

Query parameters

start_datestring date

Filter results to attributions on or after this date. Format: YYYY-MM-DD. Defaults to 90 days ago if not specified.

end_datestring date

Filter results to attributions on or before this date. Format: YYYY-MM-DD. Defaults to today if not specified.

utm_sourcestring

Filter by UTM source (e.g., "GoogleAds", "facebook", "Klaviyo")

utm_campaignstring

Filter by UTM campaign name

Response

Successful response

Example response

{
  "data": {
    "campaign_id": 789,
    "period": {
      "start_date": "2025-01-01",
      "end_date": "2025-03-31"
    },
    "totals": {
      "investment_count": 142,
      "total_amount": 425000,
      "unique_investors": 138,
      "conversion_rate": 3.08
    },
    "quality_breakdown": {
      "direct": 98,
      "assisted": 35,
      "delayed": 9
    },
    "by_source": [
      {
        "utm_source": "GoogleAds",
        "investment_count": 47,
        "total_amount": 142500
      }
    ],
    "by_campaign": [
      {
        "utm_campaign": "winter_2025",
        "investment_count": 47,
        "total_amount": 142500
      }
    ]
  }
}

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status