feat: add analytics
This commit is contained in:
parent
aa7c1411ae
commit
b51847da06
|
@ -8,24 +8,43 @@ export interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { view, title } = Astro.props;
|
const {view, title} = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Access the open, user-owned web with Lume Web, and make it yours"
|
content="Access the open, user-owned web with Lume Web, and make it yours"
|
||||||
/>
|
/>
|
||||||
<meta name="keywords" content="Web3 Extension, web3 browser, Lume Web, Web3, dWeb, p2p, handshake, eth, ethereum, ipfs, open web, privacy, decentralization, blockchain" />
|
<meta name="keywords"
|
||||||
</head>
|
content="Web3 Extension, web3 browser, Lume Web, Web3, dWeb, p2p, handshake, eth, ethereum, ipfs, open web, privacy, decentralization, blockchain"/>
|
||||||
<body>
|
<!-- Matomo -->
|
||||||
<Navbar view={view} client:load />
|
<script>
|
||||||
<main class={view}>
|
var _paq = window._paq = window._paq || [];
|
||||||
<slot />
|
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||||
</main>
|
_paq.push(['trackPageView']);
|
||||||
<Footer />
|
_paq.push(['enableLinkTracking']);
|
||||||
</body>
|
(function () {
|
||||||
|
var u = "//piwiki.lumeweb.com/";
|
||||||
|
_paq.push(['setTrackerUrl', u + 'matomo.php']);
|
||||||
|
_paq.push(['setSiteId', '2']);
|
||||||
|
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
||||||
|
g.async = true;
|
||||||
|
g.src = u + 'matomo.js';
|
||||||
|
s.parentNode.insertBefore(g, s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
<!-- End Matomo Code -->
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<Navbar view={view} client:load/>
|
||||||
|
<main class={view}>
|
||||||
|
<slot/>
|
||||||
|
</main>
|
||||||
|
<Footer/>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue