Skip to content

Embed Script

All widgets require our embed script to be included on your page, preferrably in the <head>, but it will work anywhere else as well. You only need to include this script once per page, regardless of how many widgets you want to embed on the page, and regardless of what type.

Put our embed script in your page’s <head>.

<script async src="https://www.pledge.to/assets/widget.js"></script>

When you sign up for a Pledge account, a partner key is generated for your account. Some widgets, such as the organization search form and in certain cases, the donation form, require your partner key as a parameter in their embed code. Replace [PARTNER KEY] in the code examples in these guides with your partner key.

You can find your partner key in your Impact Hub, in the Pledge APIs -> Widgets section.

Go to Impact Hub