update script tags on docs and public

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-12 14:50:02 +01:00
parent 7f41e0d40b
commit 5aabfddebd
2 changed files with 20 additions and 9 deletions

View File

@@ -45,16 +45,28 @@ export default function RootLayout({
<Footer />
</body>
<Script
src="/op.js"
data-url="https://api.openpanel.dev"
data-client-id="301c6dc1-424c-4bc3-9886-a8beab09b615"
data-track-screen-views="1"
data-track-outgoing-links="1"
src="https://openpanel.dev/op.js"
async
defer
strategy="afterInteractive"
/>
<Script
defer
data-domain="openpanel.dev"
src="https://plausible.io/js/script.js"
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,
});
`,
}}
/>
</html>
);