Add support for Google Analytics with global site tag (gtag.js) (#1563)
For documentation see https://developers.google.com/analytics/devguides/collection/gtagjs/ and https://support.google.com/analytics/answer/7538414.
This commit is contained in:

committed by
Michael Rose

parent
39bf00055a
commit
79d0b75683
@ -679,13 +679,14 @@ Analytics is disabled by default. To enable globally select one of the following
|
||||
| -------------------- | --------------------------------------------------------------- |
|
||||
| **google** | [Google Standard Analytics](https://www.google.com/analytics/) |
|
||||
| **google-universal** | [Google Universal Analytics](https://www.google.com/analytics/) |
|
||||
| **google-gtag** | [Google Analytics Global Site Tag)](https://www.google.com/analytics/) |
|
||||
| **custom** | Other analytics providers |
|
||||
|
||||
For Google Analytics add your Tracking Code:
|
||||
|
||||
```yaml
|
||||
analytics:
|
||||
provider: "google-universal"
|
||||
provider: "google-gtag"
|
||||
google:
|
||||
tracking_id: "UA-1234567-8"
|
||||
```
|
||||
|
Reference in New Issue
Block a user