📖 docs: update script tag

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-14 08:35:10 +01:00
parent 04929cd89e
commit 1c3bd0ea2e

View File

@@ -5,10 +5,10 @@ import SdkConfig from 'src/components/sdk-config.mdx';
# Script tag
Just insert this snippet and replace `{YOUR_CLIENT_ID}` with your client id.
Just insert this snippet and replace `YOUR_CLIENT_ID` with your client id.
```html
<script src="https://openpanel.dev/op.js"></script>
<script src="https://openpanel.dev/op.js" defer async></script>
<script>
window.op =
window.op ||
@@ -16,10 +16,10 @@ Just insert this snippet and replace `{YOUR_CLIENT_ID}` with your client id.
(window.op.q = window.op.q || []).push(args);
};
window.op('ctor', {
clientId: '{YOUR_CLIENT_ID}',
clientId: 'YOUR_CLIENT_ID',
trackScreenViews: true,
// trackOutgoingLinks: true,
// trackAttributes: true,
trackOutgoingLinks: true,
trackAttributes: true,
});
</script>
```