Skip to content

Commit 7991426

Browse files
committed
doc: self hosted plausible guide
1 parent 6abc6a2 commit 7991426

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/content/scripts/analytics/plausible-analytics.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ plausible('event', { name: 'conversion' })
9090

9191
Please follow the [Registry Scripts](/docs/guides/registry-scripts) guide to learn more about advanced usage.
9292

93+
### Self-hosted Plausible
94+
95+
If you are using a self-hosted version of Plausible, you will need to provide an explicit src for the script so that
96+
the API events are sent to the correct endpoint.
97+
98+
```ts
99+
useScriptPlausible({
100+
scriptInput: {
101+
src: 'https://my-self-hosted-plausible.io/js/script.js'
102+
}
103+
})
104+
```
105+
93106
### PlausibleAnalyticsApi
94107

95108
```ts

0 commit comments

Comments
 (0)