update script tags on docs and public
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user