From d7d1fb795d8946b7ffb50843bfafa13fd02fe197 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Sun, 11 Oct 2020 22:23:47 +0100 Subject: [PATCH] Add support for plausible.io --- README.md | 5 +++++ lib/analytics/plausible.rb | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 lib/analytics/plausible.rb diff --git a/README.md b/README.md index 77a0e6f..e1636da 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Supported: - [Matomo](https://matomo.org/) - [Piwik](https://piwik.org/) - [mPulse](https://www.soasta.com/performance-monitoring/) + - [Plausible](https://plausible.io) ## Installation @@ -56,6 +57,10 @@ jekyll_analytics: MPulse: # Add if you want to track performance with mPulse apikey: XXXXX-YYYYY-ZZZZZ-AAAAA-23456 # Required - replace with your mPulse API key + + Plausible: + domain: 'example.com' # The domain configured in plausible + source: 'https://plausible.example.com/js/plausible.js' # The source of the javascript ``` ## Usage diff --git a/lib/analytics/plausible.rb b/lib/analytics/plausible.rb new file mode 100644 index 0000000..3877c19 --- /dev/null +++ b/lib/analytics/plausible.rb @@ -0,0 +1,10 @@ +class Plausible + def initialize(config) + @domain = config['domain'] + @source = config['source'] + end + + def render() + return "" + end +end