Some Orgs that use Tacking and Analytics feature sometimes face problems regarding the purchase event not being fired.
The root cause is often a mixed tracking setup. Organizations frequently combine two strategies—tracking via a custom thank you page on their website and tracking directly via the donation form. These approaches should not be used together, as the redundancy can lead to missing events, duplicates, or incorrect attribution.
This documentation outlines the recommended tracking approaches
Currently, you can use two different approaches for tracking purposes:
1. Tracking via a custom thank you page on their website hosted on their own domain, following a successful payment redirect.
2. Tracking directly within the donation form
To prevent the issues mentioned above, organizations must select only one tracking method per campaign. Review the details below to determine which approach aligns with your setup:
Option 1: Custom Thank You Page Tracking (Simplified)
Use this strategy if your campaign is configured to redirect to a custom thank-you page.
Steps:
* Add the GA4 base script gtag to the thank you page.
* Fire the purchase event on that page.
* Do not use the tracking code from the Donorbox campaign editor.
Option 2: Donation Form Tracking with Cross-Domain Configuration (Recommended)
Use this strategy if your campaign is not configured with a redirect URL.
Steps:
* Maintain tracking directly within the Donorbox campaign editor.
* Ensure GA4 cross-domain tracking is correctly configured, including linker parameters.
* Do not include purchase tracking on the thank you page (if one is currently in use).
Note:
- Do not mix tracking approaches.
- Always align tracking with the campaign setup, redirect versus non-redirect.
- Cross-domain tracking is essential when using iframe-based tracking.
You can find more information here.