Fixed a Google Analytics Javascript problem.

This commit is contained in:
Scott Wallace 2014-05-16 16:02:33 +01:00
parent 63bfb56968
commit 9f31dbea69

View file

@ -110,7 +110,7 @@
} }
</style> </style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script> <script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@ -120,10 +120,8 @@
ga('send', 'pageview'); ga('send', 'pageview');
var trackOutboundLink = function(url) { var trackOutboundLink = function(url) {
ga('send', 'event', 'outbound', 'click', url, {'hitCallback': function () { ga('send', 'event', 'outbound', 'click', url, {'hitCallback': function () { document.location = url; } });
document.location = url;
} }
});
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
function openMenu() { function openMenu() {