<script type='text/javascript' src='
https://www.fundthewall.com/wp-cont...js_composer_front.min.js?ver=5.1.1'></script>
<script type="text/javascript">
(function ($) {
window.addEventListener('load', function give_ga_purchase(event) {
window.removeEventListener('load', give_ga_purchase, false);
var ga = window[window['GoogleAnalyticsObject'] || 'ga'];
document.cookie = 'give_source=' + get_parameter('utm_source');
document.cookie = 'give_medium=' + get_parameter('utm_medium');
document.cookie = 'give_campaign=' + get_parameter('utm_campaign');
if ('function' === typeof ga) {
// Load the Ecommerce plugin.
ga('require', 'ec');
var give_forms = $('form.give-form');
// Loop through each form on page and provide an impression.
give_forms.each(function (index, value) {
var form_id = $(this).find('input[name="give-form-id"]').val();
var form_title = $(this).find('input[name="give-form-title"]').val();
ga('ec:addImpression', { impressionFieldObject.
'id': form_id,
'name': form_title,
'category': 'Donations',
'list': 'Donation Forms',
'position': index + 1
});
ga('ec:setAction', 'detail');
ga('send', 'event', 'Fundraising', 'Donation Form View', form_title, {'nonInteraction': 1});
});
give_forms.on('submit', function (event) {
var form_id = $(this).find('input[name="give-form-id"]').val();
var form_title = $(this).find('input[name="give-form-title"]').val();
var form_gateway = $(this).find('input[name="give-gateway"]').val();
ga('ec:addProduct', {
'id': form_id,
'name': form_title,
'category': 'Donations',
'brand': 'Fundraising',
'price': $(this).find('.give-amount-hidden').val(),
'quantity': 1
});
ga('ec:setAction', 'add');
ga('send', 'event', 'Fundraising', 'Donation Form Begin Checkout', form_title);
ga('ec:setAction', 'checkout', {
'option': form_gateway // Payment method
});
ga('send', 'event', 'Fundraising', 'Donation Form Submitted', form_title);
});
}
}, false);