diff --git a/README.md b/README.md
index 424e109..51a05ff 100644
--- a/README.md
+++ b/README.md
@@ -38,8 +38,11 @@ Additionally, you may choose to set the following optional variables:
```yml
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
google_analytics: [Your Google Analytics tracking ID]
+google_analytics_v4: [Your Google Analytics v4 (gtags) tracking ID]
```
+`google_analytics` and `google_analytics_v4` are incompatible, you have to choose one of them, if both are set the later takes precedence.
+
### Stylesheet
If you'd like to add your own custom styles:
diff --git a/_layouts/default.html b/_layouts/default.html
index aa65198..a651639 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -4,6 +4,17 @@
+ {% if site.google_analytics_v4 %}
+
+
+
+ {% endif %}
{% seo %}
@@ -35,6 +46,7 @@
{% if site.google_analytics %}
+ {% unless site.google_analytics_v4 %}
+ {% endunless %}
{% endif %}