File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html lang ="en-us ">
33 < 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 %}
414 < meta charset ="UTF-8 ">
515 < title > {{ page.title | default: site.title }}</ title >
616 < 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
125135 < span class ="site-footer-credits "> This page was generated by < a href ="https://pages.github.com "> GitHub Pages</ a > .</ span >
126136 </ footer >
127137 </ 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 %}
139138 </ body >
140139</ html >
You can’t perform that action at this time.
0 commit comments