From 53bae3545414f129be51ba5ee6bc84850350ebf5 Mon Sep 17 00:00:00 2001
From: dserv-nh <54544490+dserv-nh@users.noreply.github.com>
Date: Mon, 25 Mar 2024 14:14:57 +0100
Subject: [PATCH 1/2] feat: support custom script host and name
---
snippets/plausible.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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()): ?>
-
+
From fb8d6c5da85b4ccba6c98c8f0d44a330086b0d0b Mon Sep 17 00:00:00 2001
From: dserv-nh <54544490+dserv-nh@users.noreply.github.com>
Date: Mon, 25 Mar 2024 14:23:42 +0100
Subject: [PATCH 2/2] docs(readme): add script customization examples
---
readme.md | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
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'
];
```