Commit 6d378f0f authored by Olga's avatar Olga

Яндекс цели

parent 9000c3b5
......@@ -113,7 +113,7 @@
<div class="callback pull-right hidden-xs" data-event="jqm" data-param-id="<?=CCache::$arIBlocks[SITE_ID]["aspro_scorp_form"]["aspro_scorp_callback"][0]?>" data-name="callback">
<a href="javascript:;" rel="nofollow" class="btn btn-default white btn-xs"><?=GetMessage("S_CALLBACK")?></a>
<a href="javascript:;" rel="nofollow" class="btn btn-default white btn-xs" onclick="ym(70881394,'reachGoal','formheadclick'); return true;"><?=GetMessage("S_CALLBACK")?></a>
</div>
......
/* Add here all your JS customizations */
BX.addCustomEvent("onSubmitForm", BX.delegate(function (data) {
if (!data.type || data.type !== 'form_submit'){
return;
}
if (data.form_name && data.form_name === 'aspro_scorp_callback' ) {
ym(70881394,'reachGoal','formheadsend')
}
if (data.form_name && data.form_name === 'aspro_scorp_order_services' ) {
ym(70881394,'reachGoal','formfootersend')
}
}));
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment