Skip to content

Commit 77e27da

Browse files
committed
📔 Docs: Improve <script> tag integration docs
1 parent ed9ae13 commit 77e27da

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,18 @@ To get your `trackingId`, open the [Analytics](https://ostr.io/service/analytics
7575

7676
> [!TIP]
7777
> Easiest way — no build tooling required.
78-
> See "integration guide" in ostr.io analytics panel to copy-paste `<script>` element
78+
> See "integration guide" at `ostr.io` analytics panel to copy-paste `<script>` element
7979
8080
```html
81-
<!--
82-
After including script-tag
83-
analytics automatically executes in 'auto' mode,
84-
its instance is available in global scope as `OstrioTracker`
85-
Example: OstrioTracker.pushEvent(foo, bar);
86-
-->
8781
<link rel="preconnect" href="https://analytics.ostr.io/" crossorigin>
8882
<link rel="dns-prefetch" href="https://analytics.ostr.io/">
8983
<script async defer src="https://analytics.ostr.io/{{trackingId}}.js"></script>
9084
```
9185

86+
> [!IMPORTANT]
87+
> When tracking code is loaded from `analytics.ostr.io` via script-tag it will automatically execute in "auto" mode and will be available in the global scope as `OstrioTracker`.
88+
> Example: `OstrioTracker.pushEvent(foo, bar);`
89+
9290
---
9391

9492
### NPM

0 commit comments

Comments
 (0)