Files
stats/apps/docs/src/pages/_app.tsx
Carl-Gerhard Lindesvärd 69b4fdc3d3 use correct client id
2024-06-26 23:12:44 +02:00

41 lines
965 B
TypeScript

import type { AppProps } from 'next/app';
import Head from 'next/head';
import Script from 'next/script';
import 'src/globals.css';
export default function App({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<link rel="icon" href="/favicon.ico" />
</Head>
<Component {...pageProps} />
<Script
src="https://openpanel.dev/op.js"
async
defer
strategy="afterInteractive"
/>
<Script
id="openpanel"
dangerouslySetInnerHTML={{
__html: `
window.op =
window.op ||
function (...args) {
(window.op.q = window.op.q || []).push(args);
};
window.op('ctor', {
clientId: '301c6dc1-424c-4bc3-9886-a8beab09b615',
trackScreenViews: true,
trackOutgoingLinks: true,
trackAttributes: true,
});
`,
}}
/>
</>
);
}