Skip to content

Commit 9c4cd2a

Browse files
committed
Added Google Analytics Tracking
1 parent c2ea086 commit 9c4cd2a

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,15 @@
55
<body>
66
<h1>jQuery Plugins</h1>
77
<h3>Still working on getting these pages up...</h3>
8+
<h4><a href="jQuery.GitHubBadge/">jQuery.GitHubBadge</a></h4>
9+
<script type="text/javascript">
10+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
11+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
12+
</script>
13+
<script type="text/javascript">
14+
try {
15+
var pageTracker = _gat._getTracker("UA-8728177-2");
16+
pageTracker._trackPageview();
17+
} catch(err) {}</script>
818
</body>
919
</html>

jQuery.GitHubBadge/Sample/Sample.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,14 @@ <h4>Advanced Usage : </h4>
7979
Typical usage : loading image/text...</div>
8080
</div>
8181
<div><a href="../">Home</a></div>
82+
<script type="text/javascript">
83+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
84+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
85+
</script>
86+
<script type="text/javascript">
87+
try {
88+
var pageTracker = _gat._getTracker("UA-8728177-2");
89+
pageTracker._trackPageview();
90+
} catch(err) {}</script>
8291
</body>
8392
</html>

jQuery.GitHubBadge/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,14 @@ <h4><a href="jquery.GitHubBadge.min.js">Download (Minified)</a></h4>
2424
http://www.opensource.org/licenses/mit-license.php
2525
http://www.gnu.org/licenses/gpl.html
2626
</div>
27+
<script type="text/javascript">
28+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
29+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
30+
</script>
31+
<script type="text/javascript">
32+
try {
33+
var pageTracker = _gat._getTracker("UA-8728177-2");
34+
pageTracker._trackPageview();
35+
} catch(err) {}</script>
2736
</body>
2837
</html>

0 commit comments

Comments
 (0)