mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-04 16:40:26 +03:00
Refactor Analytics and Head components
This commit is contained in:
@ -1,5 +1,17 @@
|
||||
---
|
||||
const id = "T5X0z12SoASBV8Dv";
|
||||
type Props = {
|
||||
readonly title: string;
|
||||
};
|
||||
|
||||
const path = Astro.url.pathname;
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<script is:inline src={`https://appmetrix.com/pixel/${id}`}></script>
|
||||
<!-- AppMetrix -->
|
||||
<script is:inline src="https://appmetrix.com/pixel/T5X0z12SoASBV8Dv"></script>
|
||||
|
||||
<!-- GoatCounter -->
|
||||
<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script>
|
||||
<noscript>
|
||||
<img alt="pixel" src={`https://analytics.popov.link/count?p=${path}&t=${title}`} />
|
||||
</noscript>
|
||||
|
Reference in New Issue
Block a user