fix onboarding instructions

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-10 00:33:59 +02:00
parent e72573d21b
commit 45a1e88216

View File

@@ -64,13 +64,16 @@ const Instructions = ({ framework, client }: Props) => {
<div className="flex flex-col gap-4"> <div className="flex flex-col gap-4">
<p>Copy the code below and insert it to you website</p> <p>Copy the code below and insert it to you website</p>
<Syntax <Syntax
code={`window.op = window.op||function(...args){(window.op.q=window.op.q||[]).push(args);}; code={`<script>
window.op = window.op||function(...args){(window.op.q=window.op.q||[]).push(args);};
window.op('init', { window.op('init', {
clientId: '${clientId}', clientId: '${clientId}',
trackScreenViews: true, trackScreenViews: true,
trackOutgoingLinks: true, trackOutgoingLinks: true,
trackAttributes: true, trackAttributes: true,
});`} });
</script>
<script src="https://openpanel.dev/op1.js" defer async></script>`}
/> />
<Alert> <Alert>
<AlertDescription> <AlertDescription>