Add voting and direct recipient donations to an existing website with one public campaign ID. A developer project is not required for this phase.
Get the public campaign ID
Publish the campaign in Our Impact, open its embed page, and copy the value after /embed/. The public ID is safe to include in browser code and is different from the campaign’s internal database ID.
Pass the public ID from configuration and place the component wherever the campaign should appear. Always destroy the returned widget during component cleanup.
Widget options
The browser SDK owns iframe creation, safe message handling, and automatic height updates.
widget-options.tstypescript
mountCampaign({ target: "#community-campaign", // HTMLElement or selector publicId: "your-public-campaign-id", title: "Community campaign", // iframe accessible name height: "auto", // or a fixed pixel value minHeight: 420, maxHeight: 900, borderRadius: 24, onStatusChange(status) { // loading | ready | identified | anonymous | error },});
Production checklist
The campaign is published and has active recipients.
The public ID comes from the embed URL.
The target element exists before mounting.
The widget is destroyed during route or component cleanup.