adjusting payment type sent to GA

This commit is contained in:
Marion Muszynski 2016-10-10 10:19:40 +02:00
parent 88e42535a7
commit ba150d8ed9

View File

@ -54,15 +54,17 @@
window.location = $input.val();
}
} else {
$form = $input.parent().children('div.hidden').children('form');
$name = $form.attr('data-module-name');
// LOADER POUR PAYPAL
if ($input.attr('data-module-name') == "paypal") {
$('.overlay_bbb').fadeIn();
$('.box_paypal').fadeIn();
$name = 'paypal';
}
$form = $input.parent().children('div.hidden').children('form');
if (window.ga && ga.create){
// submit form by GA send event
onStepComplete(4, $form.attr('data-module-name'),null,$form);
onStepComplete(4, $name,null,$form);
} else {
$form.submit();
}