Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

📖 docs: update script tag

Carl-Gerhard Lindesvärd1c3bd0ea2e41
diff --git a/apps/docs/src/pages/docs/script.mdx b/apps/docs/src/pages/docs/script.mdx
index ee4e54a89..36790e4a2 100644
--- a/apps/docs/src/pages/docs/script.mdx
+++ b/apps/docs/src/pages/docs/script.mdx
@@ -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>
```