As part of donations tracking with GA4 as ecommerce purchases, Donorbox triggers several events sending data to Google Analytics. For details on adding GA4 tracking code to your campaign, please refer to our guide "How to set up GA4 tracking inside the donation form"
The following events are generated. See "Measure ecommerce" for reference.
1. begin_checkout - triggers on donation form load. The data sent looks like
gtag('event', 'begin_checkout', { 'items': [{ 'id': <campaign id>, 'name': '<campaign name>', 'brand': '<org name>', 'category': 'Donation', 'quantity': 1 }] })
2. set_checkout_option - triggered when the donor navigates to the next/previous step within the donation form. The data sent:
​gtag('event', 'set_checkout_option', { 'checkout_step': <step> })
Where the <step> could be 1, 2, or 3, referring to the amount, information or payment tabs respectively.
3. purchase - triggers on donation completion. The data sent:
3. purchase - triggers on donation completion. The data sent:
gtag('event', 'purchase', { 'transaction_id': <donation id>, 'affiliation': 'Donorbox', 'value': <donation amount>, 'currency': '<donation currency>', 'items': [ 'id': <campaign id>, 'name': '<campaign name>', 'category': 'Donation', 'price': <donation amount>, 'brand': '<org name>',
'variant': '<recurring type>', 'quantity': 1 ] })
Comments
0 comments
Article is closed for comments.