What the widget does
The embed code adds a Give button to your website. When a visitor clicks it, Goodzera's giving form opens in a window over your page, and the gift is made through the usual checkout.
The form loads only on the websites you list in your workspace.
The widget builder on the Giving tools page has more than the Give button. You can also add a giving form, a goal meter, a list of recent gifts and a list of your latest campaigns, and preview each one before you copy its code. Goal meters and recent gifts need a published, open campaign.
Before you start
Embedding is available once your organization is verified. You also need a public profile address, and the platform address must be configured, for your workspace to show your code.
Your code is on the Giving tools page of your workspace, with a button to copy it. For the Give button and the giving form, add your website address under Settings in Giving tools first.
Some website builders remove script tags. The widget builder has steps for WordPress, Wix, Squarespace and Blogger, and an iframe code to use when a script is removed.
Add the code
Paste the code on a page of an allowed website. It looks like this, with a placeholder address and slug. Copy your real code from your workspace.
<script async src="https://your-goodzera-site/embed.js" data-ngo="your-ngo-slug"></script>To start on one campaign, add data-campaign with a campaign id. To change the label, add data-button-text. The button says Give by default.
Button text and colour
Your saved button text and colour are loaded from Goodzera. A website that restricts connections in its content security policy must allow the Goodzera address for that. Otherwise the default button is shown.
The code must load from an absolute https address on your Goodzera site. If giving is not set up for the website, the window says so.
Rules for the button
Do not change how the checkout works, imitate it, or collect supporters' payment details yourself. Do not suggest that Goodzera endorses anything on your website.
Your website's own content, privacy notice and any cookie notice are your responsibility. Goodzera can disable the button for a domain that breaks the organization terms.