Skip to content

Commit 8e93dfa

Browse files
committed
Adding Analytics on static pages.
1 parent 507f9ed commit 8e93dfa

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,20 @@ <h1>Project Policies</h1>
137137
</div>
138138
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
139139
<script src="bootstrap/js/bootstrap.min.js"></script>
140+
<script type="text/javascript">
141+
var _gaq = _gaq || [];
142+
_gaq.push(['_setAccount', 'UA-19815738-1']);
143+
_gaq.push(['_trackPageview']);
144+
145+
(function() {
146+
var ga = document.createElement('script'); ga.type =
147+
'text/javascript'; ga.async = true;
148+
ga.src = ('https:' == document.location.protocol ?
149+
'https://ssl' : 'http://www') +
150+
'.google-analytics.com/ga.js';
151+
var s = document.getElementsByTagName('script')[0];
152+
s.parentNode.insertBefore(ga, s);
153+
})();
154+
</script>
140155
</body>
141156
</html>

process.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,20 @@ <h3>Patch Releases</h3>
197197
</footer>
198198
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
199199
<script src="bootstrap/js/bootstrap.min.js"></script>
200+
<script type="text/javascript">
201+
var _gaq = _gaq || [];
202+
_gaq.push(['_setAccount', 'UA-19815738-1']);
203+
_gaq.push(['_trackPageview']);
204+
205+
(function() {
206+
var ga = document.createElement('script'); ga.type =
207+
'text/javascript'; ga.async = true;
208+
ga.src = ('https:' == document.location.protocol ?
209+
'https://ssl' : 'http://www') +
210+
'.google-analytics.com/ga.js';
211+
var s = document.getElementsByTagName('script')[0];
212+
s.parentNode.insertBefore(ga, s);
213+
})();
214+
</script>
200215
</body>
201216
</html>

proposals.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,21 @@ <h1>Inclusion</h1>
202202
</footer>
203203
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
204204
<script src="bootstrap/js/bootstrap.min.js"></script>
205+
<script type="text/javascript">
206+
var _gaq = _gaq || [];
207+
_gaq.push(['_setAccount', 'UA-19815738-1']);
208+
_gaq.push(['_trackPageview']);
209+
210+
(function() {
211+
var ga = document.createElement('script'); ga.type =
212+
'text/javascript'; ga.async = true;
213+
ga.src = ('https:' == document.location.protocol ?
214+
'https://ssl' : 'http://www') +
215+
'.google-analytics.com/ga.js';
216+
var s = document.getElementsByTagName('script')[0];
217+
s.parentNode.insertBefore(ga, s);
218+
})();
219+
</script>
205220
</body>
206221
</html>
207222

style-guide.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,21 @@ <h1>Organization</h1>
121121
</footer>
122122
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
123123
<script src="bootstrap/js/bootstrap.min.js"></script>
124+
<script type="text/javascript">
125+
var _gaq = _gaq || [];
126+
_gaq.push(['_setAccount', 'UA-19815738-1']);
127+
_gaq.push(['_trackPageview']);
128+
129+
(function() {
130+
var ga = document.createElement('script'); ga.type =
131+
'text/javascript'; ga.async = true;
132+
ga.src = ('https:' == document.location.protocol ?
133+
'https://ssl' : 'http://www') +
134+
'.google-analytics.com/ga.js';
135+
var s = document.getElementsByTagName('script')[0];
136+
s.parentNode.insertBefore(ga, s);
137+
})();
138+
</script>
124139
</body>
125140
</html>
126141

0 commit comments

Comments
 (0)