Is this article for you? It covers services only available to Give Lively member nonprofits.
Is this article for you? It covers Salesforce integration services only available to Give Lively member nonprofits.

Use embeddable widgets to collect donations on your website

Learn how to embed a widget on a site you host, or one built using Squarespace, Wix or WordPress.

Before you get started

Video Overview

Walkthrough

Before you get started

Video Overview

Walkthrough

Before you get started

Video Overview

Walkthrough

Before You Get Started

  • Have you set up a Core Profile? It's a critical first step.
  • IMPORTANT: Donation Widgets can only be associated with Campaign pages or the Core Profile. Widgets do not work with Event Ticketing pages. When a Campaign Page is closed, any associated widget will no longer accept donations and will display the alert “This campaign has ended.” To ensure uninterrupted giving, select an alternate Campaign Page (or the Core Profile) from the list of available fundraising pages.
  • IMPORTANT: You can only place one Donation Widget per web page. You may have more than one Donation Widget on your website as long as the widgets are placed on different pages.

Video Overview

Video Transcript

Walkthrough

IMPORTANT: The information in this article pertains only to widgets set up through the “Donation Widgets” link in the Nonprofit Admin Portal. These widgets are added to your website using an embed code that we generate. Embed codes should not be placed into an iframe as we cannot guarantee it will display or function correctly. We also cannot troubleshoot widgets for nonprofits that have customized the styling.

Two types of donation widgets

There are two types of widgets: Simple Donation Widget and Branded Donation Widget.

Simple Donation Widget

The Simple Donation Widget has a streamlined design. It's useful when you don't want the donation form to take up a lot of space. 

Learn how to embed a Simple Donation Widget on a website you host, on a Squarespace site, on a Wix site or on a WordPress site.

Branded Donation Widget

A Branded Donation Widget allows for the use of branding, imagery, videos and stories, as well as built-in social sharing to strengthen any fundraising appeal.

Learn how to embed a Branded Donation Widget on a website you host, on a Squarespace site, on a Wix site or on a WordPress site.

View live on site

A note about digital wallets

In most cases, Give Lively widgets detect if a donor's device/browser has digital wallets like Apple Pay, Google Pay or Venmo enabled as a payment method. Learn how to enable and disable digital wallets

In all cases, contact support@givelively.org if you have any problems setting up your widget.

Embed a Donation Widget on a website you host

Embed a Simple Donation Widget on a website you host

  1. Log in to the Nonprofit Admin Portal and click the "Donation Widgets" link in the left-hand navigation bar.
  2. Take a good look at the Widget Preview, which shows the widget filling the width of the container in which you embed it, with a recommended container height of 272 pixels.
  3. Below the Widget Preview is the option to "Customize Your Widget." Click the "Core Profile" box to reveal a menu of fundraising pages that can be associated with the widget. Choose the fundraising page you prefer. The widget will automatically adopt that campaign’s styling and donation frequency. In addition, donations made through the widget will be associated with the chosen fundraising page in the reports you get from our platform.
  4. Under "Donation Amounts," select from the options presented. You can choose to include the four default suggested donation amount buttons ($25, $50, $100 and $250) or come up with your own four suggested amount options and write them in. Alternatively, you can set one pre-filled amount for the custom donation field (which hides all other suggested amounts). Look back at the preview to see what these options look like as you change them.
  5. If you wish to include an option for donors to give in honor or in memory of someone, click the box next to "Allow donors to dedicate their donations."
  6. Once done tailoring your widget, click the "Get Embed Code" button, and then select and copy the code in its entirety.
  7. Paste the embed code into your website's code wherever you would like the widget to appear. The widget is responsive so it will fill the container you place it in.

See above for an important note about digital wallets and widgets.

Embed a Branded Donation widget on a website you host

  1. Log in to the Nonprofit Admin Portal and click the "Donation Widgets" link in the left-hand navigation bar.
  2. Click "Branded Donation Widget" in the left-hand menu.
  3. Wait a moment for a preview of the widget to load using information pulled from your Core Profile.
  4. If you wish, associate your widget with one of your Campaign Pages instead of your Core Profile. The widget will reload and adopt that campaign’s styling and donation frequency. In addition, donations through the widget will be associated with the chosen fundraising page in the reports you get from our platform.
  5. Click "Get Embed Code" and then select and copy the code in its entirety.
  6. Paste the code into your website's code wherever you would like the widget to appear. The widget is responsive so it will fill the container you place it in.
  7. IMPORTANT: For your Branded Donation widget to work, it must be served over HTTPS, meaning your website must begin with HTTPS, not HTTP.

See above for an important note about digital wallets and widgets.

Embed a Simple or Branded Donation Widget on a Squarespace site

To add a Simple Donation Widget, follow steps 1-5 in the Embed a Simple Donation Widget on a website you host section above before turning to the steps below.

To add a Branded Donation Widget, follow steps 1-4 in the Embed a Branded Donation Widget on a website you host section above before turning to the steps below.

  1. Click "Get Embed Code" and then select the "div" element of the code. For a Simple Donation Widget, it will look like this:
    <div id=“give-lively-widget” class=“gl-simple-donation-widget”></div> 
    For a Branded Donation Widget, it will be similar to this, using your organization's real name and, if relevant, campaign name:
    <div data-widget-src=’https://smart-donations-staging.givelively.org/donate/your-organization-name/campaign-name?ref=sd_widget' id=“give-lively-widget” class=“gl-branded-donation-widget”></div> 
  2. Follow these instructions provided by Squarespace
  3. Paste the "div" element from above into the Code element on the page where the widget will appear.
  4. Copy the "script" element from the embed code. The section starts and ends with "script" and will look something like this, using the type of widget, your organization's real name and, if relevant, campaign name:
    <script>gl=document.createElement(‘script’);gl.src=’https://smart-donations-staging.givelively.org/widgets/simple_donation/your-organization-name/ddsao.js?show_suggested_amount_buttons=false&show_in_honor_of=false&address_required=false&has_required_custom_question=false';document.getElementsByTagName('head')[0].appendChild(gl);</script>
  5. In the left-hand menu of the page in Squarespace, go to "Settings" and then "Advanced" and click "Code Injection" to paste the "script" code into the "Header" section.
  6. For Branded Donation Widgets, if the widget appears to be cut off after you paste in your code, refresh the page and the full widget should appear.

See above for an important note about digital wallets and widgets.

Embed a Simple or Branded Donation Widget on a Wix site

A note about payment methods: Both Apple Pay and Google Pay are never available as payment methods in widgets on websites hosted by Wix. 

To add a Simple Donation Widget, follow steps 1-5 in the Embed a Simple Donation Widget on a website you host section above before turning to the steps below.

To add a Branded Donation Widget, follow steps 1-4 in the Embed a Branded Donation Widget on a website you host section above before turning to the steps below.

  1. Click "Get Embed Code" and then select and copy the code in its entirety.
  2. Click here and follow the instructions provided by Wix.
  3. When editing your page, click the "Home Page Code" footer, which will bring up an HTML code editor. You should, by default, see the following code (if you have never edited this section before):

    $w.onReady(function () {
      //TODO: write your page related code here...
  4. Delete that code and paste in the following (if you've already embedded one widget on your Wix site, you will need to replace "html1" -- highlighted in bold in the first line below):
const GL_WIDGET_ID = "#html1";
import wixWindow from 'wix-window';
$w.onReady(function () {
  const glWidget = $w(GL_WIDGET_ID);
  glWidget.postMessage("is_wix");
  glWidget.onMessage((event) => {
      if (event.data === "is_wix") {
          glWidget.postMessage("is_wix");
      } else {
          const matches = event.data.match(/^wix:open_modal:(.*)$/);
          if (matches) {
              wixWindow.openModal(`${matches[1]}&show_close_button=false`, {
                  "width": 500,
                  "height": 650
              });
          }
      }
  });
});

Embed a Simple or Branded Donation Widget on a WordPress Site

To add a Simple Donation Widget, follow steps 1-5 in the Embed a Simple Donation Widget on a website you host section above before turning to the steps below.

To add a Branded Donation Widget, follow steps 1-4 above in the Embed a Branded Donation Widget on a website you host section above before turning to the steps below.

  1. Click "Get Embed Code" and then select and copy the code in its entirety.
  2. Click here and follow WordPress's widget instructions.

See above for an important note about digital wallets and widgets.

Downloads

Get Inspired

No items found.