-
-
Save Shoora/2eb8335ed93f0538a06b59afef2477cc to your computer and use it in GitHub Desktop.
название цели ставится у формы тут http://prntscr.com/o3rsk9 . А в яндекс метрике событие jsvsscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
window.myAfterSendedFunction = function($form){ | |
//id yandex метрики | |
var metrikID = 99999999; | |
var goal = $form.find('[name=tildaspec-formname]').val(); | |
var res = window['yaCounter'+metrikID].reachGoal(goal); | |
console.log(yaCounter51697628, res) | |
return true; | |
} | |
$('form').each(function(){ | |
$(this).data('formsended-callback', 'window.myAfterSendedFunction'); | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment