YM direct import

This commit is contained in:
kurpfish 2021-08-20 13:49:18 +03:00
parent 832344f0f2
commit 8cce68ce06
2 changed files with 19 additions and 2 deletions

View File

@ -16,6 +16,23 @@
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root"></div>
<script type="text/javascript">
(function (m, e, t, r, i, k, a) {
m[i] = m[i] || function () { (m[i].a = m[i].a || []).push(arguments) };
m[i].l = 1 * new Date(); k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(84188125, "init", {
clickmap: true,
trackLinks: true,
accurateTrackBounce: true,
webvisor: true
});
</script>
<noscript>
<div><img src="https://mc.yandex.ru/watch/84188125" style="position:absolute; left:-9999px;" alt="" /></div>
</noscript>
</body> </body>
</html> </html>

View File

@ -37,7 +37,7 @@ const App = (props) => {
</Switch> </Switch>
</Router> </Router>
<YMInitializer {/* <YMInitializer
accounts={[84188125]} accounts={[84188125]}
options={{ options={{
clickmap:true, clickmap:true,
@ -46,7 +46,7 @@ const App = (props) => {
webvisor:true webvisor:true
}} }}
version="2" version="2"
/> /> */}
</> </>
) )
} }