Skip to content

Commit 0906e1f

Browse files
author
Irek Nizamov
committed
update and add yandex metrics
2 parents 5ce73b8 + f8a0968 commit 0906e1f

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.github/workflows/deploy.yml

+4
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ jobs:
2929
- name: Upload to Deno Deploy
3030
uses: denoland/deployctl@v1
3131
with:
32+
<<<<<<< HEAD
3233
project: "gofuture.school" # 📝 Update the deploy project name if necessary
34+
=======
35+
project: "flat-starling-17" # 📝 Update the deploy project name if necessary
36+
>>>>>>> f8a0968a30e9a6164b4ccffe6ec721eafb84c51b
3337
entrypoint: "./main.ts" # 📝 Update the entrypoint if necessary

components/Hero.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export default function Hero() {
1414
</div>
1515

1616
<div class="flex flex-col md:flex-row items-center">
17-
<a
17+
<a
18+
onclick="ym(96899435,'reachGoal','https://t.me/nizamov4')"
1819
href="https://t.me/nizamov4"
1920
class="block mt-4 text-blue-600 cursor-pointer inline-flex items-center group text-blue-800 bg-white px-8 py-2 rounded-md hover:bg-blue-50 font-bold"
2021
>
@@ -23,4 +24,4 @@ export default function Hero() {
2324
</div>
2425
</div>
2526
);
26-
}
27+
}

routes/_app.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ export default function App({ Component }: PageProps) {
1414
Offer a price
1515
THE BEST INNOVATION SCHOOL"
1616
/>
17+
<!-- Yandex.Metrika counter -->
18+
<script type="text/javascript" >
19+
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
20+
m[i].l=1*new Date();
21+
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
22+
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
23+
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
24+
25+
ym(96899435, "init", {
26+
clickmap:true,
27+
trackLinks:true,
28+
accurateTrackBounce:true,
29+
webvisor:true
30+
});
31+
</script>
32+
<noscript><div><img src="https://mc.yandex.ru/watch/96899435" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
33+
<!-- /Yandex.Metrika counter -->
1734
</head>
1835
<body>
1936
<Component />

0 commit comments

Comments
 (0)