Skip to content

Commit

Permalink
Use new Google Analytics code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola committed Jul 31, 2012
1 parent ee4e29f commit 29ed5ab
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 48 deletions.
19 changes: 13 additions & 6 deletions disabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@

</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</head>
<body>
<div id="wrap">
Expand Down Expand Up @@ -64,11 +77,5 @@ <h2>Plugin disabled</h2>
<div id="footer">
</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
17 changes: 12 additions & 5 deletions enabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@

</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>

<body>
Expand Down Expand Up @@ -74,11 +86,6 @@ <h2>Plugin enabled</h2>
$("img").lazyload();
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
18 changes: 13 additions & 5 deletions enabled_container.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@
overflow: scroll;
}
</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>

<body>
Expand Down Expand Up @@ -80,11 +93,6 @@ <h2>Plugin enabled on container</h2>
$("img").lazyload({effect : "fadeIn", container: $("#container")});
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
18 changes: 13 additions & 5 deletions enabled_fadein.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
}

</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</head>

Expand Down Expand Up @@ -89,11 +102,6 @@ <h2>Plugin enabled with fadein effect</h2>
});
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
18 changes: 13 additions & 5 deletions enabled_gazillion.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
}

</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</head>

Expand Down Expand Up @@ -86,11 +99,6 @@ <h2>Plugin enabled with gazillion images</h2>
});
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
18 changes: 13 additions & 5 deletions enabled_noscript.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@
display: none;
}
</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</head>

Expand Down Expand Up @@ -102,11 +115,6 @@ <h2>Plugin enabled with nonscript fallback</h2>
});
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
20 changes: 14 additions & 6 deletions enabled_timeout.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@
}

</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>

<body>
Expand Down Expand Up @@ -80,14 +93,9 @@ <h2>Plugin enabled</h2>
});
});
$(window).bind("load", function() {
var timeout = setTimeout(function() { $("img").trigger("sporty") }, 5000);
var timeout = setTimeout(function() { $("img").trigger("sporty"); }, 5000);
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
18 changes: 12 additions & 6 deletions enabled_wide.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@
}

</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>

<body>
Expand Down Expand Up @@ -76,11 +87,6 @@ <h2>Plugin enabled on Wide Page</h2>
$("img").lazyload({effect: "fadeIn"});
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>
18 changes: 13 additions & 5 deletions enabled_wide_container.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@
}
</style>

<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-190966-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

</head>

<body>
Expand Down Expand Up @@ -88,11 +101,6 @@ <h2>Plugin enabled on horizontal container</h2>
$("img").lazyload({container: $("#container")});
});
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-190966-1";
urchinTracker();
</script>

</body>
</html>

0 comments on commit 29ed5ab

Please sign in to comment.