diff --git a/readme.md b/readme.md index da33f30..81fb31c 100644 --- a/readme.md +++ b/readme.md @@ -12,11 +12,15 @@ or download from releases There is also `floriankarsten.plausible.domain` which allows you to overwrite `data-domain` in the frontend snippet. -config.php example +`config.php` example ```php 'floriankarsten.plausible' => [ 'sharedLink' => 'https://plausible.io/share/yourwebsiteurl.com?auth=Jz0mCWTPu5opXi0sAgRrq', - 'domain' => 'test.com' // not required if not set it will be taken from $site->url + 'domain' => 'test.com', // not required if not set it will be taken from $site->url + // To use a self-hosted Plausible instance + //'scriptHost' => 'https://plausible.example.com', + // To use Plausible script extensions + //'scriptName' => 'plausible.outbound-links.exclusions' ]; ``` diff --git a/snippets/plausible.php b/snippets/plausible.php index 59a0b59..7c5b562 100644 --- a/snippets/plausible.php +++ b/snippets/plausible.php @@ -1,3 +1,3 @@ user()): ?> - +