Skip to content

Commit 7da8c36

Browse files
committed
Add Google Analytics.
1 parent b609b71 commit 7da8c36

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

angularjs.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,5 +207,13 @@ <h3 class="title"></h3>
207207
<script src="js/jquery.fileupload-angular.js"></script>
208208
<!-- The main application script -->
209209
<script src="js/app.js"></script>
210+
<script>
211+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
212+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
213+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
214+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
215+
ga('create', 'UA-41071247-1', 'blueimp.github.io');
216+
ga('send', 'pageview');
217+
</script>
210218
</body>
211219
</html>

basic-plus.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,13 @@ <h3 class="panel-title">Demo Notes</h3>
222222
.parent().addClass($.support.fileInput ? undefined : 'disabled');
223223
});
224224
</script>
225+
<script>
226+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
227+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
228+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
229+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
230+
ga('create', 'UA-41071247-1', 'blueimp.github.io');
231+
ga('send', 'pageview');
232+
</script>
225233
</body>
226234
</html>

basic.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,13 @@ <h3 class="panel-title">Demo Notes</h3>
132132
.parent().addClass($.support.fileInput ? undefined : 'disabled');
133133
});
134134
</script>
135+
<script>
136+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
137+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
138+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
139+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
140+
ga('create', 'UA-41071247-1', 'blueimp.github.io');
141+
ga('send', 'pageview');
142+
</script>
135143
</body>
136144
</html>

index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,13 @@ <h3 class="title"></h3>
251251
<!--[if (gte IE 8)&(lt IE 10)]>
252252
<script src="js/cors/jquery.xdr-transport.js"></script>
253253
<![endif]-->
254+
<script>
255+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
256+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
257+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
258+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
259+
ga('create', 'UA-41071247-1', 'blueimp.github.io');
260+
ga('send', 'pageview');
261+
</script>
254262
</body>
255263
</html>

jquery-ui.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,13 @@ <h3 class="title"></h3>
246246
<!--[if (gte IE 8)&(lt IE 10)]>
247247
<script src="js/cors/jquery.xdr-transport.js"></script>
248248
<![endif]-->
249+
<script>
250+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
251+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
252+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
253+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
254+
ga('create', 'UA-41071247-1', 'blueimp.github.io');
255+
ga('send', 'pageview');
256+
</script>
249257
</body>
250258
</html>

0 commit comments

Comments
 (0)