File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
- <!-- Google Analytics -->
2
- < script type ="text/javascript ">
1
+ {% if site.google_analytics %}
2
+ <!-- Google Analytics -->
3
+ < script type ="text/javascript ">
3
4
4
- var _gaq = _gaq || [ ] ;
5
- _gaq . push ( [ '_setAccount' , '{{ site.google_analytics }}' ] ) ;
6
- _gaq . push ( [ '_trackPageview' ] ) ;
5
+ var _gaq = _gaq || [ ] ;
6
+ _gaq . push ( [ '_setAccount' , '{{ site.google_analytics }}' ] ) ;
7
+ _gaq . push ( [ '_trackPageview' ] ) ;
7
8
8
- ( function ( ) {
9
- var ga = document . createElement ( 'script' ) ; ga . type = 'text/javascript' ; ga . async = true ;
10
- ga . src = ( 'https:' == document . location . protocol ? 'https://ssl' : 'http://www' ) + '.google-analytics.com/ga.js' ;
11
- var s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
12
- } ) ( ) ;
9
+ ( function ( ) {
10
+ var ga = document . createElement ( 'script' ) ; ga . type = 'text/javascript' ; ga . async = true ;
11
+ ga . src = ( 'https:' == document . location . protocol ? 'https://ssl' : 'http://www' ) + '.google-analytics.com/ga.js' ;
12
+ var s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
13
+ } ) ( ) ;
13
14
14
- </ script >
15
+ </ script >
16
+ {% endif %}
You can’t perform that action at this time.
0 commit comments