-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
28 lines (27 loc) · 1.11 KB
/
example.html
File metadata and controls
28 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-9809462-1']); //Use your Account ID
_gaq.push(['_trackPageview']);
(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/u/ga_debug.js';
//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>
<script type="text/javascript">
featuresToTrack = ['video','audio']; // set this array with the features you want to track. **Note max character count is 55 inclusive
(function(d, t) {
var s=d.createElement(t),x=d.getElementsByTagName(t)[0];
s.async=1;s.src='js/trackHTML5inGA.js';
x.parentNode.insertBefore(s,x);
})(document, 'script');
</script>
</head>
<body>
<h1>Example of HTML 5 tracking in Google Analytics</h1>
<p>We're using the Modernizr Script</p>
</body>
</html>