Аналитика
Источник: https://squidfunk.github.io/mkdocs-material/setup/setting-up-site-analytics/
Поддерживается интеграция с Google Analytics и Universal Analytics. Для включения GA необходимо добавить следующие строки в файл конфигурации mkdocs.yml:
extra:
analytics:
provider: google
property: G-XXXXXXXXXX
How to measure site search usage?
Besides page views and events, site search can be tracked to better understand how people use your documentation and what they expect to find. In order to enable site search tracking, the following steps are required:
- Go to your Google Analytics admin settings
- Select the property for the respective tracking code
- Select the data streams tab and click the corresponding URL
- Click the gear icon within the enhanced measurement section
- Ensure that site search is enabled
- Go to your Google Analytics admin settings
- Select the property for the respective tracking code
- Go to the view settings tab
- Scroll down and enable site search settings
- Set the query parameter to
q