Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit b68e718

Browse files
committed
google analytics required in head
1 parent 3b34df9 commit b68e718

File tree

2 files changed

+26
-32
lines changed

2 files changed

+26
-32
lines changed

implementations.html

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<head>
44
<title>JSON Schema Implementations</title>
55
<link href="lib/bootstrap-min.css" rel="stylesheet">
6+
<script type="text/javascript">
7+
var _gaq = _gaq || [];
8+
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
9+
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
10+
_gaq.push(['_setAccount', 'UA-37167904-1']);
11+
_gaq.push(['_trackPageview']);
12+
(function() {
13+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
14+
ga.src = ('https:' == document.___location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
15+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
16+
})();
17+
</script>
618
</head>
719

820
<body>
@@ -107,20 +119,5 @@ <h2>JavaScript</h2>
107119
</div> <!-- class="span8" -->
108120
</div> <!-- class="row" -->
109121
</div> <!-- class="container" -->
110-
<script type="text/javascript">
111-
112-
var _gaq = _gaq || [];
113-
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
114-
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
115-
_gaq.push(['_setAccount', 'UA-37167904-1']);
116-
_gaq.push(['_trackPageview']);
117-
118-
(function() {
119-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
120-
ga.src = ('https:' == document.___location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
121-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
122-
})();
123-
124-
</script>
125122
</body>
126123
</html>

index.html

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
<html>
22
<head>
3-
<title>JSON Schema</title>
4-
<link href="lib/bootstrap-min.css" rel="stylesheet">
3+
<title>JSON Schema</title>
4+
<link href="lib/bootstrap-min.css" rel="stylesheet">
5+
<script type="text/javascript">
6+
var _gaq = _gaq || [];
7+
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
8+
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
9+
_gaq.push(['_setAccount', 'UA-37167904-1']);
10+
_gaq.push(['_trackPageview']);
11+
(function() {
12+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
13+
ga.src = ('https:' == document.___location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
14+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
15+
})();
16+
</script>
517
</head>
618
<body>
719
<div class="container">
@@ -85,20 +97,5 @@ <h2>Schemas</h2>
8597
</p>
8698
</div>
8799
</div>
88-
<script type="text/javascript">
89-
90-
var _gaq = _gaq || [];
91-
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
92-
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
93-
_gaq.push(['_setAccount', 'UA-37167904-1']);
94-
_gaq.push(['_trackPageview']);
95-
96-
(function() {
97-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
98-
ga.src = ('https:' == document.___location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
99-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
100-
})();
101-
102-
</script>
103100
</body>
104101
</html>

0 commit comments

Comments
 (0)