1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

Don't include Google Analytics scripts without analytics id (#482)

This commit is contained in:
Tamme Schichler
2022-01-14 12:01:22 +01:00
committed by Cotes Chung
parent a6c73e8f4f
commit 4a2016a9e3
4 changed files with 6 additions and 5 deletions

View File

@@ -61,7 +61,7 @@
<script defer src="{{ '/app.js' | relative_url }}"></script>
<!-- GA -->
{% if site.google_analytics.id %}
{% if site.google_analytics.id != empty and site.google_analytics.id %}
{% include google-analytics.html %}
{% endif %}