enable traces & add metrika

This commit is contained in:
user 2025-02-20 10:05:04 +03:00
parent f675a4ca49
commit d42f6eb9e8
2 changed files with 19 additions and 1 deletions

View File

@ -12,6 +12,24 @@
<meta content="true" name="HandheldFriendly" /> <meta content="true" name="HandheldFriendly" />
<!-- Yandex.Metrika counter -->
<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();
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(99984890, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/99984890" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<script src="https://telegram.org/js/telegram-web-app.js"></script> <script src="https://telegram.org/js/telegram-web-app.js"></script>
<title>MyMusic</title> <title>MyMusic</title>

View File

@ -27,7 +27,7 @@ Sentry.init({
// of transactions for tracing. // of transactions for tracing.
// Learn more at // Learn more at
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
tracesSampleRate: 0, tracesSampleRate: 1,
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled // Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
tracePropagationTargets: [ tracePropagationTargets: [