Merge branch 'ticket-GAnalytics' into develop

This commit is contained in:
Marion Muszynski 2016-10-07 15:11:45 +02:00
commit 7fb403426b

View File

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