update script tags on docs and public
This commit is contained in:
@@ -27,7 +27,6 @@ export default function App({ Component, pageProps }: AppProps) {
|
|||||||
(window.op.q = window.op.q || []).push(args);
|
(window.op.q = window.op.q || []).push(args);
|
||||||
};
|
};
|
||||||
window.op('ctor', {
|
window.op('ctor', {
|
||||||
url: 'https://api.openpanel.dev',
|
|
||||||
clientId: 'e884ef1b-52d7-430a-b2c5-69c432faeba4',
|
clientId: 'e884ef1b-52d7-430a-b2c5-69c432faeba4',
|
||||||
trackScreenViews: true,
|
trackScreenViews: true,
|
||||||
trackOutgoingLinks: true,
|
trackOutgoingLinks: true,
|
||||||
|
|||||||
@@ -45,16 +45,28 @@ export default function RootLayout({
|
|||||||
<Footer />
|
<Footer />
|
||||||
</body>
|
</body>
|
||||||
<Script
|
<Script
|
||||||
src="/op.js"
|
src="https://openpanel.dev/op.js"
|
||||||
data-url="https://api.openpanel.dev"
|
async
|
||||||
data-client-id="301c6dc1-424c-4bc3-9886-a8beab09b615"
|
defer
|
||||||
data-track-screen-views="1"
|
strategy="afterInteractive"
|
||||||
data-track-outgoing-links="1"
|
|
||||||
/>
|
/>
|
||||||
<Script
|
<Script
|
||||||
defer
|
id="openpanel"
|
||||||
data-domain="openpanel.dev"
|
dangerouslySetInnerHTML={{
|
||||||
src="https://plausible.io/js/script.js"
|
__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>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user