Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 57 lines (52 sloc) 2.69 KB
<html>
<head>
<script type="text/javascript">
var _gas = _gas || [];
_gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']);
_gas.push(['_gasTrackVideo']);
_gas.push(['_gasTrackYoutube', {force:true, percentages: [25, 50, 75, 90, 99, 100]}]);
_gas.push(['_gasTrackVimeo', {
force:'force',
percentages: [25, 50, 75, 90, 99, 100]
}]);
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = '../dist/gas.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div>
<h2>Youtube iframed with enablejsapi=1</h2>
<iframe frameborder="0" title="YouTube video player" type="text/html" height="390" width="640" src="http://www.youtube.com/embed/u1zgFlCw8Aw?enablejsapi=1"></iframe>
</div>
<div>
<h2>Youtube iframed without enablejsapi</h2>
<iframe width="640" height="510" src="http://www.youtube.com/embed/d7b0jT19Bho" frameborder="0" allowfullscreen></iframe>
</div>
<div>
<h2>Youtube embed/object</h2>
<object width="560" height="315"><param name="movie" value="http://www.youtube.com/v/ylLzyHk54Z0?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ylLzyHk54Z0?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="560" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<div>
<h2>Youtube embed/object privacy-enhanced</h2>
<object width="853" height="480"><param name="movie" value="http://www.youtube-nocookie.com/v/ylLzyHk54Z0?version=3&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/ylLzyHk54Z0?version=3&amp;hl=en_US" type="application/x-shockwave-flash" width="853" height="480" allowscriptaccess="always" allowfullscreen="true"></embed></object>
</div>
<div>
<h2>Vimeo iframed</h2>
<iframe src="http://player.vimeo.com/video/7100569" width="400" height="300" frameborder="0"></iframe>
</div>
<div>
<h2>HTML5 Video</h2>
<video poster="http://www.html5rocks.com/en/tutorials/video/basics/star.png" controls="">
<source src="http://www.html5rocks.com/en/tutorials/video/basics/Chrome_ImF.mp4" type="video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;">
</video>
</div>
</body>
</html>