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.
Add the donation box
Paste the box code where the form should appear.
- In Shopify admin, open Online Store, then Themes, then Customize.
- Open the page or template where the box should go, add a section and choose Custom Liquid.
- Paste the donation box code from Installation in your GivePilot console, then Save.
<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.
- Copy the donate button code from Installation.
- In Online Store, then Themes, open the theme’s menu, choose Edit code and open theme.liquid.
- Paste the code just before the closing head tag and Save. The Donate button now shows on every page of your store.
<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
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.
Most Shopify themes include one. If yours does not, open Edit code and paste the box code into the template for that page instead.
Connect how you get paid
Donations from Shopify are paid into the account you connect. Each guide shows exactly where to find what GivePilot needs.
Connect Stripe
A Secret key from your Stripe dashboard, pasted into GivePilot once.
Read the guideConnect PayPal
A Client ID and Secret from a PayPal REST app, pasted into GivePilot once.
Read the guideConnect Square
An access token from the Square Developer dashboard, pasted into GivePilot once.
Read the guideQuestions about GivePilot on Shopify
Is there a GivePilot Shopify app?
Can I show a campaign in my store?
Do donations go through Shopify Payments?
Other platforms
Wix
Install the app from the Wix App Market and drag the box onto a page.
Add GivePilot to WixWordPress
Paste the box code into a Custom HTML block. No plugin to install or update.
Add GivePilot to WordPressSquarespace
A Code block for the box and Code Injection for a button on every page.
Add GivePilot to SquarespaceStart 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.
