src/ztfy/myams/templates/fullpage-modal-layout.pt
changeset 92 ac540d79ede9
parent 45 c7cc27ab398f
child 101 8364fb15bfe5
--- a/src/ztfy/myams/templates/fullpage-modal-layout.pt	Tue Oct 14 14:46:45 2014 +0200
+++ b/src/ztfy/myams/templates/fullpage-modal-layout.pt	Tue Dec 02 17:10:50 2014 +0100
@@ -24,7 +24,7 @@
 
 	<!-- Content -->
 	<div id="content" style="opacity: 1;">
-		<!--[if IE 8]>
+		<!--[if lt IE 9]>
 		<h1>Your browser is too old. Please use Internet Explorer version 9 or later.</h1>
 		<![endif]-->
 		<div class="modal-dialog modal-medium"
@@ -35,10 +35,10 @@
 
 	<tal:if condition="config/google_analytics_key">
 		<!-- Google Analytics -->
-		<script type="text/javascript">
+		<script type="text/javascript" tal:content="python:'''
 
 		  var _gaq = _gaq || [];
-		  _gaq.push(['_setAccount', 'UA-xxxxxx-y']);
+		  _gaq.push(['_setAccount', '%(key)s']);
 		  _gaq.push(['_trackPageview']);
 
 		  (function() {
@@ -47,7 +47,8 @@
 			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 		  })();
 
-		</script>
+		''' % {'key': config.google_analytics_key}"></script>
+		<!-- end Google Analytics -->
 	</tal:if>
 </body>
 </html>