mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-12-01 02:27:17 +01:00
Documented site search tracking setup
This commit is contained in:
parent
b9d44e04c1
commit
8e3fda38f1
@ -643,9 +643,9 @@ extra:
|
|||||||
|
|
||||||
### Google Analytics
|
### Google Analytics
|
||||||
|
|
||||||
MkDocs makes it easy to integrate site tracking with Google Analytics. Besides
|
MkDocs makes it easy to integrate site tracking with Google Analytics. To enable
|
||||||
basic page views, site search is tracked to better understand how people use
|
tracking, which is disabled by default, you must add your tracking identifier
|
||||||
your documentation. Google Analytics can be activated with:
|
to `mkdocs.yml`:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
google_analytics:
|
google_analytics:
|
||||||
@ -653,10 +653,20 @@ google_analytics:
|
|||||||
- auto
|
- auto
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Besides basic page views, *site search* can also be tracked to better understand
|
||||||
|
how people use your documentation and what they expect to find. To enable
|
||||||
|
search tracking:
|
||||||
|
|
||||||
|
1. Go to your Google Analytics **admin settings**
|
||||||
|
2. Select the property for the respective tracking code
|
||||||
|
3. Go to the **view settings** tab.
|
||||||
|
4. Scroll down and enable **site search settings**
|
||||||
|
5. Set the **query parameter** to `q`.
|
||||||
|
|
||||||
### Disqus
|
### Disqus
|
||||||
|
|
||||||
Material for MkDocs is integrated with [Disqus][24], so if you want to add a
|
Material for MkDocs is integrated with [Disqus][24], so if you want to add a
|
||||||
comments section to your documentation set the _shortname_ of your Disqus
|
comments section to your documentation set the *shortname* of your Disqus
|
||||||
project in `mkdocs.yml`:
|
project in `mkdocs.yml`:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user