File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="en-us ">
3
3
< head >
4
+ {% if site.google_analytics %}
5
+ < script async src ="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }} "> </ script >
6
+ < script >
7
+ window . dataLayer = window . dataLayer || [ ] ;
8
+ function gtag ( ) { dataLayer . push ( arguments ) ; }
9
+ gtag ( 'js' , new Date ( ) ) ;
10
+
11
+ gtag ( 'config' , '{{ site.google_analytics }}' ) ;
12
+ </ script >
13
+ {% endif %}
4
14
< meta charset ="UTF-8 ">
5
15
< title > {{ page.title | default: site.title }}</ title >
6
16
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
@@ -125,16 +135,5 @@ <h2 class="project-tagline">{{ site.description | default: site.github.project_t
125
135
< span class ="site-footer-credits "> This page was generated by < a href ="https://pages.github.com "> GitHub Pages</ a > .</ span >
126
136
</ footer >
127
137
</ section >
128
-
129
- {% if site.google_analytics %}
130
- < script async src ="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }} "> </ script >
131
- < script >
132
- window . dataLayer = window . dataLayer || [ ] ;
133
- function gtag ( ) { dataLayer . push ( arguments ) ; }
134
- gtag ( 'js' , new Date ( ) ) ;
135
-
136
- gtag ( 'config' , '{{ site.google_analytics }}' ) ;
137
- </ script >
138
- {% endif %}
139
138
</ body >
140
139
</ html >
You can’t perform that action at this time.
0 commit comments