Mercurial > hg > nginx-site
comparison xsls/ga.xsls @ 1213:10e622e0bfc8
Change google analytic code to enable display advertising features.
author | Sergey Budnevitch <sb@waeme.net> |
---|---|
date | Wed, 04 Jun 2014 19:48:46 +0400 |
parents | be54c443235a |
children | f717975834cf |
comparison
equal
deleted
inserted
replaced
1212:8601439bdd16 | 1213:10e622e0bfc8 |
---|---|
13 _gaq.push(['_setDomainName', 'nginx.org']); | 13 _gaq.push(['_setDomainName', 'nginx.org']); |
14 _gaq.push(['_trackPageview']); | 14 _gaq.push(['_trackPageview']); |
15 | 15 |
16 (function() \{ | 16 (function() \{ |
17 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | 17 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
18 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | 18 ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; |
19 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | 19 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
20 \})(); | 20 \})(); |
21 | 21 |
22 </script> | 22 </script> |
23 | 23 |