Browse code

Piwik se mandó a un script separado

NikaZhenya authored on 22/09/2017 08:07:43
Showing 2 changed files
... ...
@@ -8,21 +8,7 @@
8 8
         <meta name="keywords" content="cli,literatura,interfaz,linea,comandos,literature,interface,line,command">
9 9
         <link rel="shortcut icon" href="favicon.ico">
10 10
         <link type="text/css" rel="stylesheet" href="jsterm/css/styles.css">
11
-        <!-- Piwik -->
12
-		<script type="text/javascript">
13
-			var _paq = _paq || [];
14
-			/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
15
-			_paq.push(['trackPageView']);
16
-			_paq.push(['enableLinkTracking']);
17
-			(function() {
18
-				var u="//analytics.cliteratu.re/";
19
-				_paq.push(['setTrackerUrl', u+'piwik.php']);
20
-				_paq.push(['setSiteId', '1']);
21
-				var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
22
-				g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
23
-			})();
24
-		</script>
25
-		<!-- End Piwik Code -->
11
+        <script type="text/javascript" src="jsterm/analytics/piwik.js"></script>
26 12
     </head>
27 13
     <body>
28 14
         <script type="text/javascript" src="jsterm/texts/auxiliar.js"></script>
29 15
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+var _paq = _paq || [];
1
+/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
2
+_paq.push(['trackPageView']);
3
+_paq.push(['enableLinkTracking']);
4
+(function() {
5
+	var u="//analytics.cliteratu.re/";
6
+	_paq.push(['setTrackerUrl', u+'piwik.php']);
7
+	_paq.push(['setSiteId', '1']);
8
+	var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
9
+	g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
10
+})();