📖 docs: update script tag
This commit is contained in:
@@ -5,10 +5,10 @@ import SdkConfig from 'src/components/sdk-config.mdx';
|
|||||||
|
|
||||||
# Script tag
|
# 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
|
```html
|
||||||
<script src="https://openpanel.dev/op.js"></script>
|
<script src="https://openpanel.dev/op.js" defer async></script>
|
||||||
<script>
|
<script>
|
||||||
window.op =
|
window.op =
|
||||||
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.q = window.op.q || []).push(args);
|
||||||
};
|
};
|
||||||
window.op('ctor', {
|
window.op('ctor', {
|
||||||
clientId: '{YOUR_CLIENT_ID}',
|
clientId: 'YOUR_CLIENT_ID',
|
||||||
trackScreenViews: true,
|
trackScreenViews: true,
|
||||||
// trackOutgoingLinks: true,
|
trackOutgoingLinks: true,
|
||||||
// trackAttributes: true,
|
trackAttributes: true,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user