Skip to content

Instantly share code, notes, and snippets.

@andxbes
Last active November 2, 2020 02:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andxbes/7d13a28b4b64cf2ae642622a3c7d3f89 to your computer and use it in GitHub Desktop.
Save andxbes/7d13a28b4b64cf2ae642622a3c7d3f89 to your computer and use it in GitHub Desktop.
function reachYandexGoal(goal){
try{
ym(9999999, 'reachGoal', goal); //new
//yaCounter9999999.reachGoal(goal); //old
}catch(ex){
console.error("Счетчик не найден. \n" + ex);
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment