Explorar el Código

Google analytics

crobi hace 10 años
padre
commit
3f64e5d5ae
Se han modificado 5 ficheros con 63 adiciones y 0 borrados
  1. 12
    0
      generator-next/generate.html
  2. 13
    0
      generator-next/output.html
  3. 13
    0
      generator/generate.html
  4. 13
    0
      generator/output.html
  5. 12
    0
      googleanalytics.txt

+ 12
- 0
generator-next/generate.html Ver fichero

@@ -469,5 +469,17 @@ if (card.hasTag("item") && card.hasTag("consumable")) {
469 469
         </div>
470 470
     </div>
471 471
 
472
+    <!-- GOOGLE ANALYTICS (only for online preview, your local version won't have this) -->
473
+    <script>
474
+        (function (i, s, o, g, r, a, m) {
475
+            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
476
+                (i[r].q = i[r].q || []).push(arguments)
477
+            }, i[r].l = 1 * new Date(); a = s.createElement(o),
478
+            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
479
+        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
480
+
481
+        ga('create', 'UA-61016456-1', 'auto');
482
+        ga('send', 'pageview');
483
+    </script>
472 484
 </body>
473 485
 </html>

+ 13
- 0
generator-next/output.html Ver fichero

@@ -6,6 +6,19 @@
6 6
     <script type="text/javascript" src="js/output.js"></script>
7 7
     <!-- Components -->
8 8
     <link rel="import" href="components/card.html">
9
+
10
+    <!-- GOOGLE ANALYTICS (only for online preview, your local version won't have this) -->
11
+    <script>
12
+        (function (i, s, o, g, r, a, m) {
13
+            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
14
+                (i[r].q = i[r].q || []).push(arguments)
15
+            }, i[r].l = 1 * new Date(); a = s.createElement(o),
16
+            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
17
+        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
18
+
19
+        ga('create', 'UA-61016456-1', 'auto');
20
+        ga('send', 'pageview');
21
+    </script>
9 22
 </head>
10 23
 <body>
11 24
 </body>

+ 13
- 0
generator/generate.html Ver fichero

@@ -447,5 +447,18 @@ if (card_has_tag(card, "creature")) {
447 447
             </div>
448 448
         </div>
449 449
     </div>
450
+
451
+    <!-- GOOGLE ANALYTICS (only for online preview, your local version won't have this) -->
452
+    <script>
453
+        (function (i, s, o, g, r, a, m) {
454
+            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
455
+                (i[r].q = i[r].q || []).push(arguments)
456
+            }, i[r].l = 1 * new Date(); a = s.createElement(o),
457
+            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
458
+        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
459
+
460
+        ga('create', 'UA-61016456-1', 'auto');
461
+        ga('send', 'pageview');
462
+    </script>
450 463
 </body>
451 464
 </html>

+ 13
- 0
generator/output.html Ver fichero

@@ -13,6 +13,19 @@
13 13
     <!-- Fonts -->
14 14
     <link href='https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
15 15
     <link href='https://fonts.googleapis.com/css?family=Lora:700' rel='stylesheet' type='text/css'>
16
+
17
+    <!-- GOOGLE ANALYTICS (only for online preview, your local version won't have this) -->
18
+    <script>
19
+        (function (i, s, o, g, r, a, m) {
20
+            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
21
+                (i[r].q = i[r].q || []).push(arguments)
22
+            }, i[r].l = 1 * new Date(); a = s.createElement(o),
23
+            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
24
+        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
25
+
26
+        ga('create', 'UA-61016456-1', 'auto');
27
+        ga('send', 'pageview');
28
+    </script>
16 29
 </head>
17 30
 <body class="page-background">
18 31
 </body>

+ 12
- 0
googleanalytics.txt Ver fichero

@@ -0,0 +1,12 @@
1
+    <!-- GOOGLE ANALYTICS (only for online preview, your local version won't have this) -->
2
+    <script>
3
+        (function (i, s, o, g, r, a, m) {
4
+            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
5
+                (i[r].q = i[r].q || []).push(arguments)
6
+            }, i[r].l = 1 * new Date(); a = s.createElement(o),
7
+            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
8
+        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
9
+
10
+        ga('create', 'UA-61016456-1', 'auto');
11
+        ga('send', 'pageview');
12
+    </script>

Loading…
Cancelar
Guardar