File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 37
37
{% if site.enable_darkmode %}
38
38
< script src ="{{ '/assets/js/theme.js' | relative_url }} "> </ script >
39
39
{% endif %}
40
+
41
+ {% if site.enable_google_analytics %}
42
+ <!-- Global site tag (gtag.js) - Google Analytics -->
43
+ < script async src ="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }} "> </ script >
44
+ < script >
45
+ window . dataLayer = window . dataLayer || [ ] ;
46
+ function gtag ( ) { dataLayer . push ( arguments ) ; }
47
+ gtag ( 'js' , new Date ( ) ) ;
48
+
49
+ gtag ( 'config' , '{{ site.google_analytics }}' ) ;
50
+ </ script >
51
+ {% endif %}
Original file line number Diff line number Diff line change 5
5
</ script >
6
6
{% endif %}
7
7
8
- {% if site.enable_google_analytics %}
9
- <!-- Global site tag (gtag.js) - Google Analytics -->
10
- < script async src ="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }} "> </ script >
11
- < script >
12
- window . dataLayer = window . dataLayer || [ ] ;
13
- function gtag ( ) { dataLayer . push ( arguments ) ; }
14
- gtag ( 'js' , new Date ( ) ) ;
15
-
16
- gtag ( 'config' , '{{ site.google_analytics }}' ) ;
17
- </ script >
18
- {% endif %}
19
8
20
9
<!-- Load Common JS -->
21
10
< script src ="{{ '/assets/js/common.js' | relative_url }} "> </ script >
You can’t perform that action at this time.
0 commit comments