The answer is yes! When a donor donates, you can have that data passed to a URL (webpage). You can use this data to personalize the page or prefill a form, for example.
These are the parameters that Donorbox will send:
- id
- first_name
- last_name
- amount
- currency
- address
- state
- city
- country
- form_id (Campaign ID)
- form_name (Campaign name)
- duration (this refers to how often this donation will be made)
- Responses to custom questions are also passed. The parameter name will be the label of that question in the form.
How to pass the data
Step 1
- Click on the campaign name or the edit icon on the specific campaign tile.
- Scroll down to the "Post Donation" section in the campaign editor.
- Under "Redirect After Donation," toggle on the "Redirect to URL" option.
- Add the URL of the page you want to pass the data to, starting with "https://".
- To begin passing donation details to the entered URL, tick the first box below the Redirection URL field to send all details as query parameters, and tick the second box if you want to exclude the donor's personal details (first and last name, email address, and address information).
- Click the "Save Changes" button at the top right corner of the screen when you are done.
Note: To pass donation details to a URL, you must be subscribed to the Donorbox Pro/Premium tier or have the Tracking and Analytics add-on enabled.
Step 2
When a donation is made, Donorbox automatically passes all the data outlined above to the URL specified in Step 1. To use the data, you'll need to customize the code of that URL's webpage, using a script.
Open the webpage in your website builder. Add the required script within a <script> tag. You can be as creative as you'd like here. Here's a simple example of a script that will display a pop-up message box with a thank-you message.
You might need a developer to assist you with this task.
For more examples, please refer to this article: Tracking donations on your own website.