diff --git a/composer.json b/composer.json index 617e37f..0f3fece 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "drupal/config_ignore": "^2.2", "drupal/core-composer-scaffold": "^8.8", "drupal/core-recommended": "^8.8", + "drupal/google_analytics": "^2.4", "drupal/hook_event_dispatcher": "^1.28", "drupal/markdown": "^1.3", "drupal/metatag": "^1.11", diff --git a/composer.lock b/composer.lock index 9fa5d08..0bb3e09 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": "ca89fa35a8db80a0bc7008cc2a1ebc57", + "content-hash": "b0043172e58bef3a45fb4ebd381a42f3", "packages": [ { "name": "asm89/stack-cors", @@ -2267,6 +2267,62 @@ "source": "https://git.drupalcode.org/project/entity_reference_revisions" } }, + { + "name": "drupal/google_analytics", + "version": "2.4.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/google_analytics.git", + "reference": "8.x-2.4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/google_analytics-8.x-2.4.zip", + "reference": "8.x-2.4", + "shasum": "f2e78ec140024ddcd19e027704ba73c33731f656" + }, + "require": { + "drupal/core": "~8.5" + }, + "require-dev": { + "drupal/php": "*", + "drupal/token": "*" + }, + "type": "drupal-module", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + }, + "drupal": { + "version": "8.x-2.4", + "datestamp": "1548968580", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "hass", + "homepage": "https://www.drupal.org/u/hass" + }, + { + "name": "See other contributors", + "homepage": "https://www.drupal.org/node/49388/committers" + } + ], + "description": "Allows your site to be tracked by Google Analytics by adding a Javascript tracking code to every page.", + "homepage": "https://www.drupal.org/project/google_analytics", + "support": { + "source": "https://git.drupal.org/project/google_analytics.git", + "issues": "https://www.drupal.org/project/issues/google_analytics" + } + }, { "name": "drupal/hook_event_dispatcher", "version": "1.28.0", diff --git a/config/default/core.extension.yml b/config/default/core.extension.yml index 18d635f..ade3187 100644 --- a/config/default/core.extension.yml +++ b/config/default/core.extension.yml @@ -18,6 +18,7 @@ module: field_ui: 0 file: 0 filter: 0 + google_analytics: 0 hook_event_dispatcher: 0 image: 0 link: 0 diff --git a/config/default/google_analytics.settings.yml b/config/default/google_analytics.settings.yml new file mode 100644 index 0000000..09912ba --- /dev/null +++ b/config/default/google_analytics.settings.yml @@ -0,0 +1,37 @@ +account: '' +premium: false +domain_mode: 0 +cross_domains: '' +visibility: + request_path_mode: 0 + request_path_pages: "/admin\n/admin/*\n/batch\n/node/add*\n/node/*/*\n/user/*/*" + user_role_mode: 0 + user_role_roles: { } + user_account_mode: 0 +track: + outbound: true + mailto: true + files: true + files_extensions: '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip' + colorbox: true + linkid: false + urlfragments: false + userid: false + messages: { } + site_search: false + adsense: false + displayfeatures: false +privacy: + anonymizeip: true +custom: + dimension: { } + metric: { } +codesnippet: + create: { } + before: '' + after: '' +translation_set: false +cache: false +debug: false +_core: + default_config_hash: SMk3vOyh4KT6rXnqkDcNQ51YGpJzRV5hyig5SSIfU6U diff --git a/config/default/user.role.authenticated.yml b/config/default/user.role.authenticated.yml index b517afe..c912afe 100644 --- a/config/default/user.role.authenticated.yml +++ b/config/default/user.role.authenticated.yml @@ -10,5 +10,6 @@ weight: 1 is_admin: false permissions: - 'access content' + - 'opt-in or out of google analytics tracking' - 'use text format full_html' - 'view media'