Embedding the Simple Donation Widget on a Squarespace site

Follow the steps below to embed the simple widget on your Squarespace site.

  1. In the Nonprofit Admin Portal, click the "Widget" tab in the menu on the top of the dashboard. 
  2. You'll see a preview of your widget below.
  3. Next, associate your widget with one of your customized fundraising pages. The widget will adopt your campaign’s styling and donation frequency. In addition, donations from the widget will be associated with this fundraising page in data you get from our platform.
  4. Select preset suggested donation amount options for the widget ($25, $50, $100, $250) or set a custom amount.
  5. Click "Get Embed Code" then select the "div" element of the code. It will look like this:<div data-widget-src='https://38293fbc.ngrok.io/donate/helen-keller-foundation?ref=sd_widget' id='give-lively-widget'></div>
  6. Click here and follow the instructions provided by Squarespace.
  7. Paste the div element from above into the Code element on the page where the widget will appear.
  8. Copy the script element from the embed code. The section starts and ends with "script" and will look like this:<script>gl=document.createElement('script');gl.src='https://secure.givelively.org/widgets/branded_donation/helen-keller-foundation.js?show_suggested_amount_buttons=false&show_in_honor_of=undefined';document.getElementsByTagName('head')[0].appendChild(gl);</script>
  9. On the lefthand menu of the page in Squarespace, go to "Settings", then "Advanced", then click "Code Injection" and paste the script code into the "Header" section.

Please contact us at support@givelively.org if you have any problems setting up your simple widget. 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.