fix google analytics if else condition
parent
f648f84244
commit
102c3611e0
|
@ -28,4 +28,4 @@ defaults:
|
|||
sass:
|
||||
style: compact # possible values: nested expanded compact compressed
|
||||
|
||||
google_analytics_id: ""
|
||||
google_analytics_id: null
|
|
@ -1,4 +1,4 @@
|
|||
{{ if site.google_analytics_id }}
|
||||
{% if site.google_analytics_id %}
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_id }}"></script>
|
||||
<script>
|
||||
|
@ -8,4 +8,4 @@
|
|||
|
||||
gtag('config', '{{ site.google_analytics_id }}');
|
||||
</script>
|
||||
{{ end }}
|
||||
{% endif %}
|
Loading…
Reference in New Issue