Custom Liquid section and theme code

Take donations in your Shopify store

GivePilot works on Shopify with the same two lines of code as any website. The box goes into a Custom Liquid section on the page you choose, and the button goes into your theme so it shows on every page.

Shopify

Add the donation box

Paste the box code where the form should appear.

  1. In Shopify admin, open Online Store, then Themes, then Customize.
  2. Open the page or template where the box should go, add a section and choose Custom Liquid.
  3. Paste the donation box code from Installation in your GivePilot console, then Save.
Donation box inside a page
<div data-givepilot="donate"></div>
<script async src="https://givepilot.dudelemon.cloud/donate/donate.js" data-site="YOUR_SITE_KEY" data-api="https://givepilot.dudelemon.cloud/api/don/v1"></script>

Your console fills in your own site key.

Add a donate button to every page

A floating Donate button that opens the full box over any page of Shopify.

  1. Copy the donate button code from Installation.
  2. In Online Store, then Themes, open the theme’s menu, choose Edit code and open theme.liquid.
  3. Paste the code just before the closing head tag and Save. The Donate button now shows on every page of your store.
Donate button on every page
<script async src="https://givepilot.dudelemon.cloud/donate/donate.js" data-site="YOUR_SITE_KEY" data-api="https://givepilot.dudelemon.cloud/api/don/v1"></script>

Paste just before the closing head tag.

Good to know on Shopify

Donations stay apart from your sales

Gifts are paid into the Stripe, PayPal or Square account you connect in GivePilot and never pass through your store checkout, so they stay separate from your product revenue.

No Custom Liquid section in your theme?

Most Shopify themes include one. If yours does not, open Edit code and paste the box code into the template for that page instead.

Questions about GivePilot on Shopify

Is there a GivePilot Shopify app?
No app is needed. The two lines of code work in any Shopify theme, through a Custom Liquid section for the box and theme.liquid for the button.
Can I show a campaign in my store?
Yes. Copy the campaign’s embed code from the Campaigns page of your console and paste it into a Custom Liquid section.
Do donations go through Shopify Payments?
No. Donations are paid into the Stripe, PayPal or Square account you connect in GivePilot.

Start taking donations on Shopify

Set up in a few minutes, connect the payment account you already use and take your first gift before the day is out.