GuitarloverX,
jQuery(function() {
jQuery(".button-submit").click(function (e) {
var form = this.form;
var is_send_units = form.classList.contains('fm-form') && form.classList.contains('form7');
console.log( is_send_units );
if( is_send_units ){
ym(52913236, 'reachGoal', '7');
}
else {
ym(52913236, 'reachGoal', '8');
}
});
});