Skip to content

Commit db67c3b

Browse files
committed
added google analytics to examples
1 parent 77a34d2 commit db67c3b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

examples/testbed.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,14 @@ <h2>Drop images on this page to analyze them.</h2>
2222
<script src="../smartcrop.js"></script>
2323
<script src=testbed.js>
2424
</script>
25+
<script>
26+
var _gaq = _gaq || [];
27+
_gaq.push(['_setAccount', 'UA-5205069-2']);
28+
_gaq.push(['_setDomainName', '29a.ch']);
29+
_gaq.push(['_setSiteSpeedSampleRate', 50]);
30+
_gaq.push(['_trackPageview']);
31+
32+
</script>
33+
<script src="//www.google-analytics.com/ga.js" async></script>
2534
</body>
2635
</html>

examples/testsuite.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@ <h1>smartcrop.js test page</h1>
2424
<script src=testsuite.js>
2525

2626
</script>
27+
<script>
28+
var _gaq = _gaq || [];
29+
_gaq.push(['_setAccount', 'UA-5205069-2']);
30+
_gaq.push(['_setDomainName', '29a.ch']);
31+
_gaq.push(['_setSiteSpeedSampleRate', 50]);
32+
_gaq.push(['_trackPageview']);
33+
34+
</script>
35+
<script src="//www.google-analytics.com/ga.js" async></script>
2736
</body>
2837
</html>

0 commit comments

Comments
 (0)