Add Plausible Analytics

This commit is contained in:
Oliver Davies 2024-04-04 18:24:47 +01:00
parent 37589139d5
commit 19c77678fb
4 changed files with 78 additions and 2 deletions

View file

@ -22,6 +22,7 @@
"drupal/core-recommended": "^10.2",
"drupal/layout_builder_modal": "^1.2",
"drupal/pathauto": "^1.12",
"drupal/plausible": "^2.1",
"drupal/rabbit_hole": "^1.0@beta",
"drupal/redirect": "^1.9",
"drush/drush": "^12.5"

56
composer.lock generated
View file

@ -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": "c366bf941b84fac1a54082cc3eff2d8a",
"content-hash": "513fb0358414a9218ded9f4ad2ee7a2c",
"packages": [
{
"name": "asm89/stack-cors",
@ -1769,6 +1769,58 @@
"documentation": "https://www.drupal.org/docs/8/modules/pathauto"
}
},
{
"name": "drupal/plausible",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/plausible.git",
"reference": "2.1.0"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/plausible-2.1.0.zip",
"reference": "2.1.0",
"shasum": "7c9ab067bf07882aad4a2f8236050efc8376d66a"
},
"require": {
"drupal/core": "^8.8.6 || ^9 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.1.0",
"datestamp": "1687203441",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "DieterHolvoet",
"homepage": "https://www.drupal.org/user/3567222"
},
{
"name": "droces",
"homepage": "https://www.drupal.org/user/2996575"
},
{
"name": "opdavies",
"homepage": "https://www.drupal.org/user/381388"
}
],
"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"
}
},
{
"name": "drupal/rabbit_hole",
"version": "1.0.0-beta11",
@ -6607,5 +6659,5 @@
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}

View file

@ -37,6 +37,7 @@ module:
page_cache: 0
path: 0
path_alias: 0
plausible: 0
rabbit_hole: 0
redirect: 0
rh_node: 0

View file

@ -0,0 +1,22 @@
_core:
default_config_hash: 7ITcwwShhS7SG3SJdIqRQkzXEcEPNejdEnbeDVDeDY0
script:
domain: oliverdavies.uk
api: ''
src: 'https://plausible.io/js/plausible.js'
dashboard:
shared_link: ''
visibility:
enable: false
admin_route_mode: 1
request_path_mode: 0
request_path_pages: ''
user_role_roles:
anonymous: anonymous
authenticated: '0'
content_editor: '0'
administrator: '0'
user_role_mode: 1
events:
403: true
404: true