BBIS Donation Page Confirmation URL

Hi all,


When someone makes a donation on our BBIS donation page, they are "redirected" to a confirmation page, but the URL does not change, which means we are not able to track people who "abandon cart," or people who convert (when viewing Google Analytics) as well as other issues. Is there a way for us to ensure that donors are redirected to a confirmation page that is trackable?


Thank you,

PJ

Comments

  • Chris Kastner
    Chris Kastner Blackbaud Employee
    Tenth Anniversary Kudos 1 Name Dropper Participant
    There is a built-in function that's triggered upon successful completion of a donation form within the object: BLACKBAUD.netcommunity.api.DonationConfirmation

    To use this, simply add whatever function you like to it using BLACKBAUD.netcommunity.api.DonationConfirmation.Add(function(){  //your code here; });


    So for a redirection, you would do something along the lines of:

    BLACKBAUD.netcommunity.api.DonationConfirmation.add(function(){
       window.location.href = "https://yourdomain.com/donate/thank-you-page";
    });
    When doing this kind of redirection you may want to actually include some code to 'hide' the donation form once it's been submitted and add a loading indicator over the page.


    Note - this might be a little different if you have your form configured to use BB Checkout - my understanding is that functionality does already reload the page once completed but I assume it does then trigger that function correctly (but I would need to test that to verify).


    You can also test all of the custom confirmation functions by calling BLACKBAUD.netcommunity.api.DonationConfirmation.run(); within your browser's javascript console.

Categories