Is there a js plugin for counting purposes on sites like Yandex Metrika?

The desired control objectives at different sites, as does Yandex Metric( reachGoal ). Ie the website loads a script from my server and for example when you submit a form, invokes a method reachGoal(name), which pings my server done on purpose. Minus metric in the delay before information about the target, about 15 minutes. Moreover, it has restrictions on the number of requests to API.
Thought to write myself, but need to hemorrhoids with cors and if you already have something ready, it will be easier to copy.
Don't know how to Google and what to write on the issue tracker, so I write here)
March 23rd 20 at 19:07
1 answer
March 23rd 20 at 19:09
Thought to write myself, but need to hemorrhoids with cors

and what is difficult?
Access-Control-Allow-Origin: *
and everything works on all sites.

Well, to make a script and Abisko which accepts data at all obvious how.

For half an hour an hour can make the final decision.
Bro) because all my questions are answered usually you MB give your contacts the VC or carts?) - gus.Kemmer commented on March 23rd 20 at 19:12
@gus.Kemmer, meet in the framework of the toaster, in-person consultations are not engaged - harrison_Gusikowski93 commented on March 23rd 20 at 19:15

Find more questions by tags JavaScript