HelpYouSponsor

Website & Embed

Callbacks & Events

Track conversions without guessing

Callbacks and Events let you hook into key moments in the donor journey -- donation completions, form submissions, sponsorship matches, and errors. Fire Google Analytics events, trigger custom thank-you pages, update your own UI, or send conversion data to ad platforms. The SDK emits events that your JavaScript code can listen for and act on in real time.

The Problem

Without event callbacks, you have no visibility into what happens inside the embed -- you cannot track conversions, trigger follow-up actions, or attribute donations to marketing campaigns.

The Solution

With HYS Callbacks and Events, every key interaction inside the embed fires a JavaScript event your code can listen for, giving you full visibility and control over the donor journey.

How it works

1

Register event listeners

Attach JavaScript callback functions to the SDK events you care about -- donation completed, form submitted, sponsorship matched, error occurred.

2

Events fire in real time

When a donor completes a donation, submits a form, or matches with a recipient, the SDK fires the corresponding event with relevant data.

3

Act on the data

Your callback function receives event data (amount, donor info, program) and can fire analytics events, redirect to thank-you pages, or update your UI.

Key features

Donation completion events
Form submission callbacks
Error handling hooks
Analytics integration

Frequently asked questions

Ready to get started?

See how callbacks & events can transform your organization.