-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnatives.html
More file actions
83 lines (63 loc) · 2.25 KB
/
Copy pathnatives.html
File metadata and controls
83 lines (63 loc) · 2.25 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<title>Home Questionnaire<span id="selection-marker-1" class="redactor-selection-marker"></span></title>
</head>
<body>
<h1>What is your favorite place to travel?</h1>
<p>I am building a directory of the sweetest travel destinations.</p>
<form name="travel" onsubmit="identify(event)">
What is your favorite travel destination?
<input name="destination" required="" size="81" type="text"/>
<br><br><br>
Any recommendations (cool things to do, places to visit or restaurants to eat)?
<br><br>
<textarea cols="81" name="details" required="" rows="10">
</textarea>
<br><br>
Name: <input name="fullname" required="" size="75" type="text"/>
<br><br>
Email: <input name="email" required="" size="75" type="email"/>
<br><br>
<input name="submit" type="submit" value="submit"/>
</form>
<script type="text/javascript">
function identify(e){
e.preventDefault();
//var clientId = "clientId";
var form = e.target;
var email = form["email"].value;
var fullname = form["fullname"].value;
var destination = form["destination"].value;
var details = form["details"].value;
var user = {
email: email,
name: fullname,
destination: destination,
details: details,
clientId: clientId,
activeSocialAccountId:activeSocialAccountId
};
analytics.identify('1234', {
email: email,
name: fullname,
clientId: clientId,
activeSocialAccountId: 4159263
},{
context: {['Google Analytics']:clientId}
});
analytics.track('Join Waitlist', user,{
context: {['Google Analytics']:clientId}
});
for (var i = 0; i < links.length; i++) {
analytics.trackLink(links[i], 'job_spec_viewed', {
job_title: links[i].textContent
}, {context: {ip: "0.0.0.0" }}
);
}
</script>
<!-- Start of HubSpot Embed Code -->
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/7197274.js"></script>
<!-- End of HubSpot Embed Code -->
</body>
</html>