From 6c9e5746caa09f71bd2a69a7d5be062762227dcb Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 26 Sep 2020 19:28:16 +0100 Subject: [PATCH] Add module for Plausible Analytics --- composer.json | 1 + composer.lock | 48 +++++++++++++++++++++++++-- config/default/core.extension.yml | 1 + config/default/plausible.settings.yml | 8 +++++ 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 config/default/plausible.settings.yml diff --git a/composer.json b/composer.json index 9619bff..aac856d 100644 --- a/composer.json +++ b/composer.json @@ -36,6 +36,7 @@ "drupal/migrate_tools": "^4.5", "drupal/paragraphs": "^1.10", "drupal/pathauto": "^1.8", + "drupal/plausible": "1.x-dev", "drupal/redirect": "^1.5", "drupal/scheduler": "^1.3", "drupal/simple_sitemap": "^3.6", diff --git a/composer.lock b/composer.lock index 504381b..b0b2ca2 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bd5d663c215838b5134f059af1a07aac", + "content-hash": "93360382c8722947d5a2d047abfd2071", "packages": [ { "name": "asm89/stack-cors", @@ -3270,6 +3270,48 @@ "documentation": "https://www.drupal.org/docs/8/modules/pathauto" } }, + { + "name": "drupal/plausible", + "version": "dev-1.x", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/plausible.git", + "reference": "b49998458cdd2b02834f156132cc0b02ba239b99" + }, + "require": { + "drupal/core": "^8.8.6 || ^9" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + }, + "drupal": { + "version": "8.x-1.x-dev", + "datestamp": "1596149122", + "security-coverage": { + "status": "not-covered", + "message": "Project has not opted into security advisory coverage!" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "droces", + "homepage": "https://www.drupal.org/user/2996575" + } + ], + "description": "Allows your site to be tracked using Plausible, by adding a Javascript tracking snippet to every page.", + "homepage": "https://www.drupal.org/project/plausible", + "support": { + "source": "https://git.drupalcode.org/project/plausible" + }, + "time": "2020-07-30T22:44:53+00:00" + }, { "name": "drupal/redirect", "version": "1.6.0", @@ -11216,7 +11258,9 @@ ], "aliases": [], "minimum-stability": "dev", - "stability-flags": [], + "stability-flags": { + "drupal/plausible": 20 + }, "prefer-stable": true, "prefer-lowest": false, "platform": [], diff --git a/config/default/core.extension.yml b/config/default/core.extension.yml index 2485004..fe5632f 100644 --- a/config/default/core.extension.yml +++ b/config/default/core.extension.yml @@ -46,6 +46,7 @@ module: page_cache: 0 path: 0 path_alias: 0 + plausible: 0 redirect: 0 scheduler: 0 simple_sitemap: 0 diff --git a/config/default/plausible.settings.yml b/config/default/plausible.settings.yml new file mode 100644 index 0000000..86c3340 --- /dev/null +++ b/config/default/plausible.settings.yml @@ -0,0 +1,8 @@ +data_domain: oliverdavies.uk +visibility: + request_path_mode: '0' + request_path_pages: '' + user_role_mode: '0' + user_role_roles: + anonymous: anonymous + authenticated: 0