Send conversion events from Fundraise Up to Movable Ink
Movable Ink is a cloud-based platform that allows marketers to create and deliver dynamic, personalized emails that are tailored to each customer's individual needs. Using Fundraise Up’s JavaScript API, you can send conversion events to Movable Ink.
Implementation guide
To track the donationComplete
JavaScript event in Movable Ink, add the following script to every page of your organization’s website.
1<!-- Movable Ink initialization for Fundraise Up ->
2
3<script type='text/javascript'>
4(function(m,o,v,a,b,l,e) {
5if (typeof m['MovableInkTrack'] !== 'undefined') { return; }
6m['MovableInkTrack'] = b;
7l = o.createElement(v);
8e = o.getElementsByTagName(v)[0];
9l.type = 'text/javascript'; l.async = true;
10l.src = '//' + a + '/p/js/1.js';
11m[b] = m[b] || function() { (m[b].q=m[b].q||[]).push(arguments); };
12e.parentNode.insertBefore(l, e);
13</script>
14
15<!--Fundraise Up Donation Complete Event ->
16
17<script type="text/javascript">
18FundraiseUp.on('donationComplete', function(details) {
19var conversion = {
20revenue: details.donation.amount,
21identifier: details.donation.id
22};
23var product = {
24sku: ( details.donation.recurring ? 'FRURECURRING-' : 'FRUONETIME-' ) + details.donation.currency,
25name: ( details.donation.recurring ? 'Fundraise Up Recurring Donation - ' : 'Fundraise Up One-time Donation - ') + details.donation.currency,
26price: details.donation.amount,
27quantity: '1',
28other: details.campaign.name
29};
30mitr('addProduct', product);
31mitr('send', 'conversion', conversion);
32});
33</script>