-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
40 lines (35 loc) · 1.42 KB
/
index.html
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
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<script type="text/javascript" src="auto-ga-form-abandonment.js"></script>
</head>
<body>
<form name="foo">
<input name="foo"></input>
<input name="baz"></input>
<input type="submit"></input>
</form>
<form name="baz">
<input name="bar"></input>
<a href="#">foo</a>
</form>
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=[GTM_CONTAINER_ID]"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','[GTM_CONTAINER_ID]');</script>
<!-- End Google Tag Manager -->
<script>
setTimeout(function() {
var f = document.createElement("form")
f.setAttribute("name", "boo")
var i = document.createElement("input")
i.setAttribute("name", "baa")
f.appendChild(i)
document.body.appendChild(f)
}, 1000)
</script>
</body>
</html>