Embed your form on your site
Paste a short snippet on your charity website to embed a Together donation form. Cards, Google Pay and Link work for every donor, BECS once the form offers it, and PayTo where your Stripe account offers it; Apple Pay needs a custom domain, on every plan, to render inside the embed.
Embedding lets donors give without leaving your site. On most sites you paste the same snippet and only the location changes; on Raisely you add a small custom component instead. Plan for five minutes the first time.
Before you start
You need:
- EDITOR or ADMIN role on your org.
- At least one ACTIVE donation form at Engage -> Forms. If you do not have one yet, follow Ship your first donation form first.
- Access to your CMS (WordPress, Webflow, Squarespace, NationBuilder, Raisely, or any host that lets you paste raw HTML).
Steps
-
Go to Engage -> Forms and open the form you want to embed.
The Engage forms list. -
Click the Embed tab on the form detail page. The snippet is generated for you - a single placeholder
<div>plus a small<script>tag.<div id="together-donate-XXXXXXXX"></div> <script src="https://yourorg.alltogether.giving/api/embed.js?v=..." data-token="XXXXXXXX" async ></script> -
Pick the tab that matches your CMS (Generic HTML, WordPress, Webflow, Squarespace, NationBuilder, Raisely). The snippet is identical on all of them except Raisely; only the paste instructions differ. The Raisely tab gives you a custom component to copy instead, plus the token that component needs - see Raisely below.
-
Click Copy and paste into your page. The Live preview on the same screen shows exactly what donors will see.
Where to paste it, by CMS
WordPress
Edit the page or post.
- Block editor (Gutenberg): add a Custom HTML block and paste the snippet into it. Update.
- Classic editor: switch to the Text tab (top right) and paste at the position where you want the form. Update.
The form renders inline at the position you pasted; no plugin needed.
Webflow
Edit the page in the Designer.
- From the Add Element panel, drag an Embed element into the section where you want the form.
- Open the Embed and paste the snippet. Click Save & Close.
- Publish the site (top right). The Embed element shows a placeholder in the Designer; the real form only renders on the published page.
Squarespace
Edit the page.
- Click the + to add a block, choose Code.
- Set the language to HTML, untick Display Source, and paste the snippet.
- Save.
NationBuilder
Edit the page in the admin.
- Body: insert an HTML block at the position you want the form and paste the snippet.
- Settings: paste into the page's Custom HTML area if you want the form to appear in a slot the body editor cannot reach.
Save and publish.
Raisely
A Raisely site uses a custom component instead of the pasted snippet. Set it up once and reuse it for every form and recommendation set you embed.
Create the component
-
In Together, open the form's (or recommendation set's) Embed tab, click the Raisely tab, and click Copy. That code is specific to your Together account - the version below is only an illustration of what you will see.
(RaiselyComponents, React) => (props) => { const SCRIPT_URL = "https://yourorg.alltogether.giving/api/embed.js?v=..."; const { token, analytics } = props.getValues(); const ref = React.useRef(null); React.useEffect(() => { if (!token || !ref.current) return; const s = document.createElement("script"); s.src = SCRIPT_URL; s.async = true; s.setAttribute("data-token", token); if (analytics) s.setAttribute("data-analytics", "auto"); ref.current.parentNode.appendChild(s); return () => { s.remove(); if (ref.current) ref.current.innerHTML = ""; }; }, [token, analytics]); if (!token) { return <p>Set the Together token in this block's settings.</p>; } return <div id={"together-donate-" + token} ref={ref} />; } -
In Raisely, go to Settings -> Developers -> Custom Components and add a new component. Name it something you will recognise in the page editor, like
Together Donation Form. Paste the copied code in as the component code. -
In the component's Fields card, add two fields. The Label ID has to match exactly - that is the name the code reads:
Label Label ID Type Token tokenText Analytics analyticsCheckbox Analytics is optional. Ticking it on a block is the same as adding
data-analytics="auto"to the snippet - see Track donations in Meta Pixel or Google Analytics. -
Save the component.
Add it to a page
- Open the Raisely page editor for the page that should show the form, click Add to insert a block, and search for the component by the name you gave it.
- With the block selected, open its settings (the gear icon).
- Copy the Token from the Embed tab's Raisely tab into the block's Token field. Tick Analytics if you want automatic pixel tracking.
- Publish the page. The form renders where you put the block.
Good to know
- One component, many embeds. The form or set is chosen by the Token on each block, so one component serves your whole site - add another block wherever you want another form. Each block needs its own Token.
- If the code on the Embed tab changes, for example after you activate a custom embed domain, copy it again and re-paste it into the Raisely component.
- If you change the component's fields later, an existing block keeps the old set until you reset it: select the block, open its Advanced tab, and reset it to pick the new fields up.
- Apple Pay needs the custom domain, and that setup includes hosting a file at a specific address on your own website. On a Raisely site, contact support before you start and we will work out whether that is possible for your setup.
Other CMS / static site
Anywhere that accepts raw HTML works. Paste the snippet inside your page's content area, between <body> tags. The placeholder <div> is required; the <script> tag does the rest.
How the form blends in
The embedded form is built to look like part of your page, not a bolted-on widget:
- A subtle panel, not a hard box. Embedded, the form sits in a soft, translucent panel with a light border, so it reads as a distinct piece of your page without an opaque widget box. It blends into a coloured background and stays gently framed on a white one.
- Your font. The form picks up the font of the page it's embedded in, so its text matches the rest of your site.
- Your brand colour. If you've set a primary colour at Settings -> Branding, the donate button and amount buttons use it.
Change the background, font and amount size
Your site's own CSS cannot reach inside the embedded form. The form loads in a frame from Together's address, so styles in Webflow, WordPress or any other site builder stop at the frame's edge. Instead, add any of these attributes to the snippet's <script> tag:
| Attribute | Value | What it does |
|---|---|---|
data-background | A six-digit hex colour, e.g. #fdfbf7 | Fills the form's panel with that colour instead of the subtle panel. |
data-font-url | The https:// address of a .woff2, .woff, .ttf or .otf file | Loads that font file and uses it first for the form's text. |
data-amount-size | large | Makes the amount buttons and the "Other amount" box bigger and bold. |
Good to know:
- The background must be a light colour, close to white. The form's grey fine print has to stay readable on it, so anything darker is ignored and the form keeps its usual panel. A pale cream such as
#fdfbf7works; a deeper cream such as#f5f0e8is already too dark. Three-digit (#fff) and named colours (white) are ignored too. - The amount size applies to donation forms only. A recommendation set has no amount buttons, so the attribute does nothing there.
- The card fields keep Stripe's font. The card number, expiry and CVC boxes are Stripe's own frame, so they use Stripe's font whatever you set.
- The font file's host has to allow it. A browser loads a font from another site only when that site allows it. Webflow's file host allowed it on the sites we checked. If your font does not change, your host does not allow it, and the form keeps the font it picked up from your page.
- The form uses one font file for every weight. The browser draws bold text from that one file, so bold text in the form may look slightly different from bold text elsewhere on your site.
- The Raisely component does not pass these attributes. Contact support if you need them on a Raisely site.
- Any value that is not in the table is ignored, and the form keeps its usual look.
Example: match a Webflow site. Webflow serves your site's custom fonts from its own file host. To find a font file's address:
- Open your published site (not the Designer) in Chrome, right-click the page and choose View page source.
- Click the stylesheet link near the top (its address ends in
.css) and search the stylesheet for@font-face. - Copy the
https://address insideurl(...)for the regular weight of your font. It looks likehttps://cdn.prod.website-files.com/.../YourFont-Regular.woff2.
Then add the attributes to your snippet:
<div id="together-donate-XXXXXXXX"></div>
<script
src="https://yourorg.alltogether.giving/api/embed.js?v=..."
data-token="XXXXXXXX"
data-background="#fdfbf7"
data-font-url="https://cdn.prod.website-files.com/.../YourFont-Regular.woff2"
data-amount-size="large"
async
></script>
Publish the site to see the change; the Webflow Designer shows only a placeholder.
What works in the embedded form
| Payment method | Available | Notes |
|---|---|---|
| Cards | yes | Visa, Mastercard, Amex. |
| Google Pay | yes | Renders for donors on supported Android / Chrome. |
| Link | yes | Stripe's autofill wallet. |
| BECS direct debit | yes | Australian bank-account donations. |
| PayTo | yes | Where your Stripe account offers it. |
| Apple Pay | see below | Needs a custom domain to render inside the embed. |
Apple Pay note: Apple Pay only shows up for donors using Safari on a Mac or iPhone. Inside an embedded form there's a second catch: Safari hides the Apple Pay button when the form comes from a different web address than the page it's embedded in. The default snippet loads the form from Together's address, so Apple Pay doesn't render when donors are on your site. Donors who visit your Together donation page directly still see it. The fix is a custom domain, available on every plan — see Apple Pay everywhere with your own domain below.
Apple Pay everywhere with your own domain
On every plan, Free included, you can serve the embedded form from a subdomain you own, like give.yourcharity.org. Once that's set up, Apple Pay works inside the embed - donors on Safari see the Apple Pay button right on your page. You can have up to three domains part-way through setup at once; finish or remove one to add another.
There are two parts to the setup, and the form only goes live for Apple Pay once both are done:
- Point a subdomain at Together - one DNS record.
- Add a small file to your website - so Apple knows the form belongs to you.
The Settings -> Engage -> Custom domains page walks you through both as a numbered checklist and ticks each step off as it verifies. The domain you set up here applies to every embedded form in your account, so this is a one-time setup. Plan about ten minutes.
1. Add your domains in Together
- Go to Settings -> Engage -> Custom domains.
- Under Use your own domain (or, once you have a domain, Add domain at the top of the page), you'll enter two things:
- The embed address - a new subdomain you'd like the form to load from, e.g.
give.yourcharity.org. - Your website address - the address of the site where you'll show the form, e.g.
yourcharity.org(orwww.yourcharity.orgif that's how visitors reach your site). Together fills this in for you based on the embed address - correct it if it's not quite right.
- The embed address - a new subdomain you'd like the form to load from, e.g.
- Click Add domain. The status starts as Setup in progress and a two-step checklist appears.
2. Point your subdomain at Together
The checklist's first step shows the DNS record to add. At your DNS provider (Cloudflare, Route 53, Namecheap, your hosting provider, etc.) add a single CNAME record:
| Field | Value |
|---|---|
| Type | CNAME |
| Name | the subdomain (e.g. give) |
| Value | embed.alltogether.giving |
| TTL | Default (300-3600s) |
Saving is instant; the change usually takes effect within five minutes, though some providers can take up to 48 hours. Step 1 ticks green automatically once it's done.
3. Add the Apple Pay file to your website
Apple needs proof that the donation form belongs to you. You do that by placing one small file on your website.
-
In the checklist's second step, click Download the file. It saves a file named
apple-developer-merchantid-domain-association(no file extension - that's normal, leave the name exactly as it is). -
Upload that file to your website so it opens at this exact address:
https://yourcharity.org/.well-known/apple-developer-merchantid-domain-association.well-knownis a folder at the top level of your site. If it isn't there already, create it. The file goes inside it, with its name unchanged. -
How you upload it depends on your site:
- Have a hosting file manager or FTP access? (cPanel, Plesk, or your host's dashboard.) Open the folder for your website, create a
.well-knownfolder at the root if it's missing, and upload the file into it. - On WordPress? Use a file-manager plugin, or ask whoever manages your hosting to drop the file in for you.
- Not sure? Forward the file and the address above to your web person or your hosting provider's support - it's a routine request and takes them a minute.
- Have a hosting file manager or FTP access? (cPanel, Plesk, or your host's dashboard.) Open the folder for your website, create a
Once the file is in place, Together detects it automatically. Step 2 ticks green - or click Check now if you don't want to wait for the next check. If it still doesn't tick after a minute or two, see the troubleshooting note below.
When it's done
Once both steps are ticked, the status flips to Active. The snippet in the Embed tab updates to load the form from your subdomain - copy the new snippet and paste it into your site.
Snippets you've already pasted keep working, but only the new one shows Apple Pay inside the embed.
What if my site builder won't let me upload a file?
Some hosted site builders (certain Squarespace, Wix, or Weebly plans) don't let you place a file at a specific address. If you can't get the file to open at the .well-known address above, Apple Pay can't be turned on inside the embed on that site. Cards, Google Pay, Link, and BECS still work for every donor (PayTo where your Stripe account offers it), and Safari donors who visit your Together donation page directly still get Apple Pay. If you're stuck, contact support and we'll help you find a workaround.
What happens if I remove the domain later?
Removing the domain unhooks it from Together and the form stops loading on give.yourcharity.org. The original Together-address snippet keeps working - re-paste it if you need a quick fallback. You can safely delete the Apple Pay file from your website afterwards.
Then delete the DNS record you added for give.yourcharity.org at your domain registrar. While that record still points at Together, another organisation could add the same subdomain to its own account and serve its forms from your address. Deleting the record closes that off.
Things to keep in mind
- The embed address is a subdomain in this release - the form loads from
give.yourcharity.org, not fromyourcharity.orgitself. - The website address can be your main domain. That's the point of this step -
yourcharity.orgorwww.yourcharity.org, wherever you actually show the form. - One set-up per organisation is the typical case. You can add more if you run multiple sites; each needs its own CNAME and its own copy of the file.
- HTTPS is automatic for the subdomain. A security certificate is issued once the subdomain verifies; you don't upload anything for that part.
- The domain is locked to your organisation while it's Active. To move it to a different Together org (e.g. an agency switching client accounts), contact support.
Record where donors came from with link tags
Together records seven tags from the links in your ads, emails and social posts, and stores them against the donation:
| Tag | Typical use |
|---|---|
utm_source | Where the link was posted, e.g. facebook |
utm_medium | The kind of link, e.g. email or paid |
utm_campaign | Your campaign name, e.g. eofy-2026 |
utm_term | A paid-search keyword |
utm_content | Which version of an ad or link, e.g. video-a |
gclid | Added automatically by Google Ads |
fbclid | Added automatically by Facebook and Instagram |
To tag a link, add the tags to the address of the page the donor will give on:
https://yourcharity.org/donate?utm_source=facebook&utm_medium=paid&utm_campaign=eofy-2026
That page can be your own page with the embedded form on it, or your Together donation page (https://yourorg.alltogether.giving/donate/...).
Good to know:
- Embedded forms pass on the tags of the page they sit on. A donor who lands on
yourcharity.org/donate?utm_source=facebookand gives through the embedded form hasfacebookrecorded. If you pasted your snippet before November 2026, copy it again from the form's Embed tab (or re-paste the Raisely component). Until you do, a returning visitor's browser can keep using an older copy of the embed that does not pass tags on. - Tags come from the giving page. Together does not follow a donor from page to page, so if they land on a tagged page and then click through to an untagged one before giving, nothing is recorded.
- A regular gift keeps its tags. Every later payment of a regular gift carries the tags the donor signed up with.
- Tags are cleaned. Letters, numbers, spaces, hyphens, underscores and full stops are kept and anything else is dropped. Each tag is cut to 200 characters, and capitals are kept as you typed them, so
Facebookandfacebookare different values. Use the same spelling every time. - Checkout links and donations entered by staff, imported or synced from another system do not record tags.
- Where to see them. A donation's tags appear in its detail on the donations list, which you can filter by
utm_source,utm_medium,utm_campaignandutm_content, and they are included in the CSV export. See Read the donations list.
Track donations in Meta Pixel or Google Analytics
When a donor completes a donation in the embedded form, Together sends a small event to your page that you can forward to Meta Pixel, Google Analytics, Google Tag Manager, or any analytics tool. Your pixel fires the moment the donation succeeds, with the real amount - no copying numbers off the page, no separate thank-you page to wire up.
The event never includes a donor's name, email, or address. It carries only the donation amount, the currency, your campaign's revenue code, and whether the payment is confirmed or still clearing.
Option A: let Together wire it up (quickest)
If you already have Meta Pixel or Google Tag Manager on your page, add data-analytics="auto" to the embed script tag:
<div id="together-donate-XXXXXXXX"></div>
<script
src="https://yourorg.alltogether.giving/api/embed.js?v=..."
data-token="XXXXXXXX"
data-analytics="auto"
async
></script>
Together pushes a together.donation.succeeded (or together.donation.processing) event into your Google Tag Manager dataLayer and fires a Meta Pixel Purchase with the donation value on every successful or submitted donation - including bank debits (BECS / PayTo) that are still clearing.
Before you turn this on: automatic tracking shares each donation's value with Meta and Google. Make sure your privacy policy and your cookie / consent banner cover sharing donation data with those services. That disclosure is your responsibility as the site owner, not Together's.
Option B: write your own listener (full control)
For anything custom - a different pixel, your own event names, conditional logic - listen for the together:event on your page and do whatever you like with it. Paste this below the embed snippet, on the same page:
<script>
window.addEventListener("together:event", function (e) {
var d = e.detail;
if (d.event !== "donation.succeeded" && d.event !== "donation.processing")
return;
// Google Tag Manager dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: "together." + d.event,
value: d.amount,
currency: d.currency,
transaction_id: d.eventId,
tracking_code: d.trackingCode,
status: d.status,
});
// Meta Pixel
if (typeof fbq === "function") {
fbq(
"track",
"Purchase",
{
value: d.amount,
currency: d.currency,
content_name: d.trackingCode || d.entityId || d.formId,
content_type: "donation",
},
{ eventID: d.eventId },
);
}
});
</script>
This works on any site. On NationBuilder, paste it into the same HTML block as the embed snippet. It needs no jQuery and reads nothing off the page.
What's in the event
e.detail carries:
| Field | What it is |
|---|---|
event | donation.succeeded (card cleared), donation.processing (bank debit submitted, clearing over the next few days), or donation.failed (payment declined) |
status | CONFIRMED, PENDING, or FAILED |
amount | The donation amount, e.g. 50 |
currency | The currency code, e.g. AUD |
frequency | one-time or recurring |
trackingCode | Your campaign revenue code for this form, if one is set |
eventId | A unique reference for the donation - pass it to Meta as eventID so browser and server events de-duplicate |
entityId | The identifier of the embedded item that produced this donation - use this for new integrations |
formId | The form's identifier. Present on donation-form events only; prefer entityId |
For BECS and PayTo (bank debit), the donation is submitted when the event fires but the money clears over the following days, so it arrives as donation.processing / PENDING. If you only want to count money that has actually settled - or you want tracking that ad-blockers can't stop - use donation webhooks instead, which fire server-side when funds land.
Who can embed your form
Any site can embed it. That is the same security posture your donate page already has: the page is public, and a donation made through an embed on someone else's site still arrives in your account with your branding, your revenue code and your receipt.
There is no per-domain restriction to configure. If you find your form embedded somewhere you would rather it wasn't, the practical remedies are to pause the form (Edit -> Status -> Paused, then Save) or to create a separate form for the site you do want, so you can retire one without touching the other. Contact support if you need a hand.
Troubleshooting
- The form does not appear at all. Two usual causes:
- The CMS's HTML editor stripped the
<script>tag (some rich-text editors do this aggressively). Paste into the raw HTML / code block, not the rich-text editor, so both the<div>and the<script>survive. - Your site has a custom Content Security Policy that blocks third-party iframes. Open your browser console: a message like "Refused to frame ... because it violates the following Content Security Policy directive" means your CMS's CSP needs to allow
frame-src https://yourorg.alltogether.giving. CSP is set by your own site, not by Together.
- The CMS's HTML editor stripped the
- The form loads but is cropped or stuck at a fixed height. The embed resizes itself to match its content as donors fill in fields. If it stays one height:
- Check your site's CSS is not constraining the iframe (e.g. a wrapping container with
overflow: hiddenand a fixed height). - A browser extension that blocks cross-origin
postMessage(rare, but happens with some hardening extensions) can prevent the resize. Try in a clean browser profile.
- Check your site's CSS is not constraining the iframe (e.g. a wrapping container with
- Apple Pay does not appear for a donor on Chrome. Expected. Apple Pay only ever renders in Safari on macOS or iOS, on any tier - that's an Apple constraint.
- Apple Pay still doesn't show after I set up my own domain. Open Settings -> Engage -> Custom domains: both checklist steps need to be ticked green and the status must read Active. If step 2 won't tick, paste the file address (
https://yourcharity.org/.well-known/apple-developer-merchantid-domain-association) into your browser - it should download or display the file. A "not found" error means the file isn't at the right address yet; re-check the folder name (.well-known, with the leading dot) and that the file name has no extension. - Renaming the form broke my snippet. It should not - the snippet uses a stable token, not the form's slug. If the snippet stopped working after a rename, contact support.
What to do next
- Track donations in your analytics by following Track donations in Meta Pixel or Google Analytics above.
- Record where donors came from with link tags.
- Set up revenue codes for the embed at Set up revenue codes, so you can attribute embed donations to specific campaigns.
- Brand the embed to match your site at Brand your donate pages.
- Want Apple Pay on Safari donors who land on your own domain? Follow Apple Pay everywhere with your own domain above.