File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -340,17 +340,13 @@ <h2>Machine Learning in Python</h2>
340
340
</ div >
341
341
342
342
{% if theme_google_analytics|tobool %}
343
- < script type ="text/javascript ">
344
- var _gaq = _gaq || [ ] ;
345
- _gaq . push ( [ '_setAccount' , 'UA-22606712-2' ] ) ;
346
- _gaq . push ( [ '_trackPageview' ] ) ;
347
-
348
- ( function ( ) {
349
- var ga = document . createElement ( 'script' ) ; ga . type = 'text/javascript' ; ga . async = true ;
350
- ga . src = ( 'https:' == document . location . protocol ? 'https://ssl' : 'http://www' ) + '.google-analytics.com/ga.js' ;
351
- var s = document . getElementsByTagName ( 'script' ) [ 0 ] ; s . parentNode . insertBefore ( ga , s ) ;
352
- } ) ( ) ;
343
+ < script >
344
+ window . ga = window . ga || function ( ) { ( ga . q = ga . q || [ ] ) . push ( arguments ) } ; ga . l = + new Date ;
345
+ ga ( 'create' , 'UA-22606712-2' , 'auto' ) ;
346
+ ga ( 'set' , 'anonymizeIp' , true ) ;
347
+ ga ( 'send' , 'pageview' ) ;
353
348
</ script >
349
+ < script async src ='https://www.google-analytics.com/analytics.js '> </ script >
354
350
{% endif %}
355
351
< script >
356
352
( function ( ) {
You can’t perform that action at this time.
0 commit comments