Events fired by our checkout
When you install our drop-in checkout on your website somewhere, you copy and paste 2 lines of HTML code, one is a SCRIPT tag and one is a DIV tag (which instructs the SCRIPT tag where to install your drop-in checkout).
There are 4 events we will fire that you can hook into should you wish:
loadevent, which happens once the drop-in checkout has loaded completelyresizeevent, which happens whenever our drop-in checkout auto-resizes it's heightpageevent, which happens whenever a page change happens in our drop-in checkoutconversionevent, which happens whenever a gift card is ordered via your checkout
Attaching to an event
To attach to an event simply call the following code: (e.g. the load event)
giftup("load", function (payload) {
console.log(payload);
// Fire your event here...
});
The resize and conversion events are provider a single payload parameter. For more information on conversion tracking, please read our separate guide.