mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Updated documentation
This commit is contained in:
parent
f65f46705c
commit
ce602ddf2a
@ -55,9 +55,9 @@ following lines to `mkdocs.yml`:
|
|||||||
|
|
||||||
1. Go to your Google Analytics __admin settings__
|
1. Go to your Google Analytics __admin settings__
|
||||||
2. Select the property for the respective tracking code
|
2. Select the property for the respective tracking code
|
||||||
3. Select the __Data Streams__ tab and click the corresponding URL
|
3. Select the __data streams__ tab and click the corresponding URL
|
||||||
4. Click the gear icon within the __Enhanced measurement__ section
|
4. Click the gear icon within the __enhanced measurement__ section
|
||||||
5. Ensure that __Site search__ is enabled
|
5. Ensure that __site search__ is enabled
|
||||||
|
|
||||||
=== ":material-google-analytics: Universal Analytics"
|
=== ":material-google-analytics: Universal Analytics"
|
||||||
|
|
||||||
@ -261,6 +261,27 @@ e.g. your privacy policy:
|
|||||||
[custom cookies]: #custom-cookies
|
[custom cookies]: #custom-cookies
|
||||||
[extra.consent enabled]: ../assets/screenshots/consent.png
|
[extra.consent enabled]: ../assets/screenshots/consent.png
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Hiding the feedback widget
|
||||||
|
|
||||||
|
When [Metadata] is enabled, the [feedback widget][extra.analytics.feedback] can
|
||||||
|
be hidden for a document with custom front matter. Add the following lines at
|
||||||
|
the top of a Markdown file:
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
---
|
||||||
|
hide:
|
||||||
|
- feedback
|
||||||
|
---
|
||||||
|
|
||||||
|
# Document title
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
[Metadata]: extensions/python-markdown.md#metadata
|
||||||
|
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
### Custom site analytics
|
### Custom site analytics
|
||||||
|
@ -45,9 +45,8 @@
|
|||||||
if (document.forms.search) {
|
if (document.forms.search) {
|
||||||
var query = document.forms.search.query
|
var query = document.forms.search.query
|
||||||
query.addEventListener("blur", function() {
|
query.addEventListener("blur", function() {
|
||||||
if (this.value) {
|
if (this.value)
|
||||||
gtag("event", "search", { search_term: this.value })
|
gtag("event", "search", { search_term: this.value })
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user