Subversion Repositories eFlore/Applications.del

Rev

Rev 2017 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2017 Rev 2110
Line 33... Line 33...
33
		<script src="<?=$url_script_navigation?>"></script>
33
		<script src="<?=$url_script_navigation?>"></script>
Line 34... Line 34...
34
 
34
 
Line 35... Line 35...
35
		<title>Statistiques Identiplante / Pictoflora</title>
35
		<title>Statistiques Identiplante / Pictoflora</title>
36
 
-
 
37
		<!-- Stats : Google Analytics -->
36
 
-
 
37
		<!-- Stats : Google Analytics -->
38
		<script type="text/javascript">
38
		<script>
39
			//<![CDATA[
39
			// répercussion de la config PHP pour ne solliciter GA qu'en prod
40
			var _gaq = _gaq || [];
40
			var prod = false;
-
 
41
			<?php if ($mode_serveur == 'prod'): ?>
Line 41... Line 42...
41
			_gaq.push(['_setAccount', 'UA-20092557-1']);
42
				prod = true;
42
			_gaq.push(['_trackPageview']);
43
			<?php endif; ?>
43
 
44
 
44
			(function() {
45
			if (prod) {
-
 
46
			  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-
 
47
			  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
45
			  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
48
			  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
46
			  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
49
			  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
47
			  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
50
			
Line 48... Line 51...
48
			})();
51
			  ga('create', 'UA-57885-8', 'auto');
Line 49... Line 52...
49
			//]]>
52
			}