Skip to content

Commit

Permalink
gtag, metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
nullity00 committed Jan 5, 2025
1 parent 1bb8884 commit 19b297a
Showing 1 changed file with 58 additions and 2 deletions.
60 changes: 58 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,68 @@
import { Html, Head, Main, NextScript } from "next/document";
import Script from "next/script";

export default function Document() {
return (
<Html lang="en">
<Head />
<body className="antialiased">
<Head>
{/* Basic Metadata */}
<meta charSet="utf-8" />
<meta
name="title"
content="Electisec Reports (previously yAcademy & yAudit)"
/>
<meta name="description" content="ZK & Smart Contract Security" />
<meta
name="keywords"
content="Electisec, Zero Knowledge, Smart Contract Security, Blockchain Security, Ethereum, Cryptography, DeFi"
/>
<meta name="referrer" content="origin" />
<meta name="creator" content="Electisec Team" />
<meta name="robots" content="follow, index" />

{/* Open Graph */}
<meta property="og:type" content="website" />
<meta property="og:url" content="https://reports.electisec.tech" />
<meta
property="og:title"
content="Electisec (previously yAcademy & yAudit)"
/>
<meta
property="og:description"
content="ZK & Smart Contract Security"
/>
<meta property="og:site_name" content="Electisec" />
<meta
property="og:image"
content="https://reports.electisec.tech/logo.svg"
/>

{/* Twitter */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@electisec" />
<meta name="twitter:creator" content="@electisec" />
<meta name="twitter:image" content="https://electisec.tech/logo.svg" />

{/* Favicon */}
<link rel="icon" href="/favicon.ico" />
</Head>
<body>
<Main />

<NextScript />
<Script
strategy="afterInteractive"
src="https://www.googletagmanager.com/gtag/js?id=G-6ME5DJZ484"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6ME5DJZ484');
`}
</Script>
</body>
</Html>
);
Expand Down

0 comments on commit 19b297a

Please sign in to comment.