accuser / svelte-plausible-analytics

MIT License
12 stars 5 forks source link

works with self hosted plausible #19

Open thaarrtt opened 4 months ago

thaarrtt commented 4 months ago

from source api host url is hardcoded and dont have a way to edit on the fly other than via fork

is there a way to edit it via config file ????

accuser commented 3 days ago

The default value for the apiHost property is hardcoded, but can be overridden:

<PlausibleAnalytics apiHost={my.analytics.home} ... />`

or

<script>
    const apiHost = 'my.analytics.home';
</script>

<PlausibleAnalytics {apiHost} ... />