From 4e1f98af3671a6c97883c8a31f5e8616b3db29a9 Mon Sep 17 00:00:00 2001 From: Georgy Malkov Date: Fri, 2 Aug 2024 11:54:24 +0300 Subject: [PATCH 1/2] Update settings.md Add GTM analytics settings for static --- ru/settings.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ru/settings.md b/ru/settings.md index d9782a97..c27ee280 100644 --- a/ru/settings.md +++ b/ru/settings.md @@ -17,4 +17,8 @@ `lang` | Язык локализации дефолтных текстов | `string` | `ru` `needToSanitizeHtml` | Нужно ли санитайзить сгенерированный HTML | `bool` | `true` `sanitizeOptions` | Конфигурация санитайзера | `Object` | `undefined` -`linkifyTlds` | Настройка tld для плагина linkify | `string \| string[]` | `undefined` \ No newline at end of file +`linkifyTlds` | Настройка tld для плагина linkify | `string \| string[]` | `undefined` +`analytics` | Конфигурация для модуля аналитки | `Object` | `undefined` +`analytics.gtm` | Настройки Google Tag Manager аналитики | `Object` | `undefined` +`analytics.gtm.id` | Идентификатор Google Tag Manager в формате GTM-* | `string` | `undefined` +`analytics.gtm.mode` | Тип уведомления перед отправкой событий `base` или `notification` | `string` | `base` From 93ad40cb4e32693f8a7b7fbb3752dd63a2c2a57c Mon Sep 17 00:00:00 2001 From: Georgy Malkov Date: Fri, 2 Aug 2024 11:57:41 +0300 Subject: [PATCH 2/2] Update settings.md --- en/settings.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/en/settings.md b/en/settings.md index ae97ae16..c47cbe97 100644 --- a/en/settings.md +++ b/en/settings.md @@ -19,3 +19,7 @@ Standard YFM settings are listed below. Depending on the tool you use, you can c `needToSanitizeHtml` | Need to sanitize the generated HTML | `bool` | `true` `sanitizeOptions` | Sanitizer configuration | `Object` | `undefined` `linkifyTlds` | Allow set tld for the linkify plugin | `string \| string[]` | `undefined` +`analytics` | Analytics module configuration | `Object` | `undefined` +`analytics.gtm` | Options for Google Tag Manager analytics | `Object` | `undefined` +`analytics.gtm.id` | ID of Google Tag Manager at format GTM-* | `string` | `undefined` +`analytics.gtm.mode` | Notification type before analytics events start being sent `base` or `notification` | `string` | `base`