Embedding a Donately donation form into a Shopify site

How to put a Donately donation form on a Shopify store with a Custom Liquid section on its own Donate page, which Shopify plans support it, and where to test it.

Integrations

Shopify's Custom Liquid section puts your Donately form directly into a page of your store, so every payment method works there, including Apple Pay and Google Pay. Embedding works on every Donately plan, including Free.

Shopify's Starter plan cannot do this, because it does not let you add sections or page templates. On other plans you can, as long as your online store is public: donors cannot reach a password-protected store.

Use a Custom Liquid section, not the page editor. Shopify's page editor removes <script> tags when you save, so code pasted there disappears. The Custom Liquid section keeps it.

1. Copy your embed code from Donately

  1. Build your donation form and publish it. The Share button stays disabled until the form is published.
  2. Open the form and click Share.
  3. Under Embed on Your Website, choose Simple script, then click Copy Embed Code.

Simple script is the right choice for Shopify. Put your donation form on your website explains the other two options if you need them.

2. Create a Donate page template with the form

  1. In your Shopify admin, go to Online Store and click Edit theme.
  2. Open the page selector at the top of the editor (it starts on Home page), choose Pages, then Create template. Name it donate, base it on the default page template, and click Create template.
  3. In the sidebar, click Add section, search for Custom Liquid, and add it.
  4. Paste the code you copied in step 1 into the section's code field, then click Save.

If the form stretches across the whole width of the screen, wrap the code in a box before you paste it:

<div style="max-width: 640px; margin: 0 auto;">
  (paste your Donately code here)
</div>

3. Create the Donate page and publish

  1. Go to Online Store → Pages and click Add page.
  2. Give it a title such as "Donate".
  3. Set Theme template to donate, then click Save.
  4. Open the page on your live store. The form appears where you placed the Custom Liquid section.

Judge the result on the live page rather than in the theme editor. The editor shows your store inside a preview frame, and a newly added script may not run there until you reload.

To put the page in your store's navigation, go to Content → Menus, open your main menu, click Add menu item, and link it to the Donate page.

You do not need to repeat any of this when you edit the form later. Publish your changes in Donately and the embedded form picks them up within a minute or two. If it still looks old, hard-refresh the page.

Apple Pay and Google Pay

Because the Custom Liquid section puts the form directly into your page rather than inside a separate frame, mobile wallets work on Shopify. There is one step on the Donately side: register your store's domain under Settings → Payment Processors, or use the task Donately adds to your dashboard after your first donation from the store. Accept Apple Pay and Google Pay on your donation forms walks through it.

Register the domain donors see in their address bar, such as shop.example.org. If your store also answers on its myshopify.com address, that counts as a separate domain. Test wallets on the live store, not in the theme editor's preview.

Styling the form

Because the form sits directly in your page, it can pick up some of your theme's styles, such as fonts. Set the donate button and accent color with Primary color in the form builder, and use Custom CSS for anything else. Change how your donation form looks covers both.

Every form has a Hosted Form Link: a complete donation page that Donately hosts for you. Copy it from the form's Share page, then add it to your store's menu under Content → Menus (paste the link into the menu item and pick it from the list), or point a button on your store at it.

It needs no theme changes, and Apple Pay and Google Pay work there with no setup.

Last updated

Still stuck?

We use cookies to understand how the help centre is used, and to see which articles lead people to Donately. Nothing is set unless you agree.