Skip to main content
Together
Sign in

Embed your form on your site

Paste a short snippet on your charity website to embed a Together donation form. Cards, Google Pay, Link, BECS, and PayTo work for every donor; Apple Pay needs a Raise-tier custom domain to render inside the embed.

Embedding lets donors give without leaving your site. The snippet is the same shape across every CMS - what changes is where you paste it. Plan for five minutes the first time.

Before you start

You need:

Steps

  1. Go to Engage -> Forms and open the form you want to embed.

    The Engage forms list page showing one donation form named "Support our work".
    The Engage forms list.
  2. 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>
    
  3. Pick the tab that matches your CMS (Generic HTML, WordPress, Webflow, Squarespace, NationBuilder). The snippet is identical; only the paste instructions differ.

  4. 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.

The form renders inline at the position you pasted; no plugin needed.

Webflow

Edit the page in the Designer.

  1. From the Add Element panel, drag an Embed element into the section where you want the form.
  2. Open the Embed and paste the snippet. Click Save & Close.
  3. 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.

  1. Click the + to add a block, choose Code.
  2. Set the language to HTML, untick Display Source, and paste the snippet.
  3. Save.

NationBuilder

Edit the page in the admin.

Save and publish.

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:

What works in the embedded form

Payment methodAvailableNotes
CardsyesVisa, Mastercard, Amex.
Google PayyesRenders for donors on supported Android / Chrome.
LinkyesStripe's autofill wallet.
BECS direct debityesAustralian bank-account donations.
PayToyesReal-time bank debit for Australian donors.
Apple Paysee belowNeeds a Raise-tier 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 the Raise-tier custom domain — see Apple Pay everywhere with your own domain below.

Apple Pay everywhere with your own domain (Raise)

On the Raise tier 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.

There are two parts to the setup, and the form only goes live for Apple Pay once both are done:

  1. Point a subdomain at Together - one DNS record.
  2. 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

  1. Go to Settings -> Engage -> Custom Domains.
  2. Under Use your own domain, 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 (or www.yourcharity.org if 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.
  3. 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:

FieldValue
TypeCNAME
Namethe subdomain (e.g. give)
Valueembed.alltogether.giving
TTLDefault (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.

  1. 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).

  2. Upload that file to your website so it opens at this exact address:

    https://yourcharity.org/.well-known/apple-developer-merchantid-domain-association
    

    .well-known is 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.

  3. 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-known folder 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.

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, BECS, and PayTo still work for every donor, 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.

Things to keep in mind

Restricting who can embed your form (optional)

The default is "any site can embed." That is the right setting for most charities - it's the same security posture as your donate page already being public. If you want to lock embedding to specific domains, the form's Embed tab has an Allowed domains field:

Use this when you want to prevent another site from embedding your form (a competitor or a defunct partner). Leave it empty if you are sharing the snippet on multiple sites you control - simpler to maintain.

Troubleshooting

What to do next