Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Commit 74505cb

Browse files
committed
Change the google analytic script tag to use a protocol relative URL
* Eliminate the dynamic JS and use a static tag
1 parent 8d4aa33 commit 74505cb

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

_layouts/default.html

+1-10
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@
3333
<p>Web Design by <a href="http://www.mr-eel.com/">Luke Matthew Sutton</a> - Community Maintained</p>
3434
</div>
3535
</div>
36-
<script type="text/javascript">
37-
//<![CDATA[
38-
(function() {
39-
var ga = document.createElement('script');
40-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
41-
ga.setAttribute('async', 'true');
42-
document.documentElement.firstChild.appendChild(ga);
43-
})();
44-
//]]>
45-
</script>
36+
<script src="//www.google-analytics.com/ga.js" type="text/javascript" async="async"></script>
4637
</body>
4738
</html>

0 commit comments

Comments
 (0)