📖 docs: update script tag
This commit is contained in:
@@ -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>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user