From 87b787ddfcc49349dbe6093692af01c63226dcc4 Mon Sep 17 00:00:00 2001 From: Ezra Sharp Date: Wed, 7 Oct 2020 00:33:18 +1300 Subject: [PATCH] Support Custom Plausible traker domain. --- README.md | 2 ++ layouts/partials/plausible.html | 2 +- plugin.json | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b669a5f..df3fb0b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # plugin-plausible Adds Plausible Analytics to a blog hosted on micro.blog + +- Supports using a custom tracker domain: https://docs.plausible.io/custom-domain \ No newline at end of file diff --git a/layouts/partials/plausible.html b/layouts/partials/plausible.html index 3779d07..0002eae 100644 --- a/layouts/partials/plausible.html +++ b/layouts/partials/plausible.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/plugin.json b/plugin.json index 41b11d8..489f80f 100644 --- a/plugin.json +++ b/plugin.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "1.1.0", "title": "Plausible Analytics", "description": "Includes Plausible Analytics code.", "includes": [ @@ -10,6 +10,11 @@ "field": "params.blog_domain", "label": "Blog Domain", "placeholder": "Hostname registered at plausible.io." + }, + { + "field": "params.plausible_domain", + "label": "Plausible Domain (Optional)", + "placeholder": "Custom domain to load tracker script from." } ] } \ No newline at end of file