-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (28 loc) · 1.53 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" sizes="32x32" href="/src/assets/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/src/assets/favicon-16.png">
<script src="/api/config.js"></script>
<title>Spec Box</title>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
const { metrikaCounterId } = window.__SPEC_BOX_CONFIG || {};
if (metrikaCounterId) {
(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(); for (var j = 0; j < document.scripts.length; j++) { if (document.scripts[j].src === r) { return; } } 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(metrikaCounterId, "init", { clickmap: true, trackLinks: true, accurateTrackBounce: true });
window.__SPEC_BOX_ANALYTICS_API = {
hit: (url, params) => ym(metrikaCounterId, 'hit', url, { params }),
sendEvent: (eventName, params = {}) => ym(metrikaCounterId, 'params', { params: { [eventName]: params } }),
};
}
</script>
<!-- /Yandex.Metrika counter -->
</head>
<body>
<div id="root" class="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>