diff --git a/README.md b/README.md index 1a80685..6ba2b55 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,12 @@ Ensure that you have updated your application `.env` with credentials from [Plau PLAUSIBLE_SITE_ID= PLAUSIBLE_API_KEY= +#PLAUSIBLE_BASE_URL= <-- (Optional) for self-hosted ``` +> *Note* If you are using a self-hosted version of plausible, ensure that you define `PLAUSIBLE_BASE_URL` to point to your custom domain. + + ## Usage ### 1. Getting Realtime Visitors diff --git a/config/plausible.php b/config/plausible.php index ba5f48c..9844c65 100644 --- a/config/plausible.php +++ b/config/plausible.php @@ -12,7 +12,7 @@ | */ 'base_url' => env(key: 'PLAUSIBLE_BASE_URL', default: 'https://plausible.io/api/v1/stats'), - + /* |-------------------------------------------------------------------------- | Site ID (Domain)