-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (151 loc) · 9.04 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
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html>
<head>
<!-- <script>
!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.build/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="frzGG1wEXOidbluEQ7uFIzBvlwBkbvBn";;analytics.SNIPPET_VERSION="5.2.0";
analytics.load("frzGG1wEXOidbluEQ7uFIzBvlwBkbvBn");
analytics.page();
}}();
</script> -->
<!-- PROD BELOW -->
<!-- <script>
!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="5fB0m0lDvSb45TJAZe5RAbSdswHEEMx9";;analytics.SNIPPET_VERSION="5.2.0";
analytics.load("5fB0m0lDvSb45TJAZe5RAbSdswHEEMx9");
analytics.page();
}}();
</script> -->
<!-- STAGING BELOW -->
<script>
!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.build/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="RCCx4Q4hYdzC8Q6uAgJlj42L15xGGlqz";;analytics.SNIPPET_VERSION="5.2.0";
analytics.load("RCCx4Q4hYdzC8Q6uAgJlj42L15xGGlqz");
analytics.page();
}}();
</script>
<title>Sneakerhead Signup<span id="selection-marker-1" class="redactor-selection-marker"></span></title>
</head>
<body>
<h1>Sign up for the latest information on sneaker drops!!</h1>
<p>Enter your contact information if you would like to receive alerts about the best sneakers as soon as they drop.</p>
<!--Location for users to enter their information to receive the sneakerhead newsletter-->
<form name="sneakersignup" onsubmit="identify(event)">
<br> <br>
Name: <input name="fullname" required="" size="60" type="text"/>
<br> <br>
Email: <input name="email" required="" size="60" type="email"/>
<br> <br>
<label for="shoeType">Preferred Shoe</label>
<select id="shoeType" name="shoeType">
<option value="Running">Running</option>
<option value="Cross Trainers">Cross Trainers</option>
<option value="Sports">Sports</option>
</select>
<br> <br>
<input name="submit" type="submit" value="submit"/> </form>
<button id="IntercomDefaultWidget">Click me </button>
<br>
<script type="text/javascript">
function identify(e){
e.preventDefault();
var form = e.target;
var email = form["email"].value;
var fullname = form["fullname"].value;
var shoeType = form["shoeType"].value;
var user = {
email: email,
name: fullname
};
// // Identify call
analytics.identify('12345', {
email: email,
name: fullname,
shoeType: shoeType
});
// // Sign-up Track call
analytics.track('user signed up', user, function() {
window.location.href = "";
});
// // Ecommerce Events
// analytics.track('Products Searched', {
// query: 'kith air force 1'
// });
// analytics.track('Product List Viewed', {
// list_id: 'hot_sneakers_2021',
// category: 'Trendy',
// products: [ {
// product_id: '507f1f77bcf86cd799439011',
// sku: '45790-32',
// name: 'Air Jordan 4 - White / Military Blue - Fire Red',
// price: 500.00,
// position: 1,
// category: 'Jordan',
// url: 'https://www.example/product/path',
// image_url: 'https://www.example.com/product/path.jpg'
// }, {
// product_id: '505bd76785ebb509fc183733',
// sku: '46493-32',
// name: 'Kith x Nike Air Force 1 “NYC”',
// price: 1000.00,
// position: 2,
// category: 'Air Force 1'
// } ] });
// analytics.track('Product Viewed', {
// product_id: '507f1f77bcf86cd799439011',
// sku: 'G-32',
// category: 'Jordan',
// name: 'Air Jordan 4 - White / Military Blue - Fire Red',
// brand: 'Nike',
// variant: 'November 2019',
// price: 500.00,
// quantity: 1,
// coupon: 'First_Purchase',
// currency: 'usd',
// position: 2,
// value: 500,
// last_name: 'Bowerman',
// url: 'https://www.example.com/product/path',
// image_url: 'https://www.example.com/product/path.jpg'
// });
// analytics.track('Product Added', {
// cart_id: 'skdjsidjsdkdj29j',
// product_id: '507f1f77bcf86cd799439011',
// sku: 'G-32',
// category: 'Jordan',
// name: 'Air Jordan 4 - White / Military Blue - Fire Red',
// brand: 'Nike',
// variant: 'November 2019',
// price: 500.00,
// quantity: 1,
// coupon: 'First_Purchase',
// position: 2,
// url: 'https://www.example.com/product/path',
// image_url: 'https://www.example.com/product/path.jpg'
// });
// analytics.track('Order Completed', {
// checkout_id: 'fksdjfsdjfisjf9sdfjsd9f',
// order_id: '50314b8e9bcf000000000000',
// affiliation: 'Google Store',
// total: 555.00,
// subtotal: 500.00,
// revenue: 525.00,
// shipping: 35.00,
// tax: 20.00,
// discount: 30.00,
// coupon: 'First_Purchase',
// currency: 'USD',
// products: [
// {
// product_id: '507f1f77bcf86cd799439011',
// sku: 'G-32',
// name: 'Air Jordan 4 - White / Military Blue - Fire Red',
// price: 500.00,
// quantity: 1,
// category: 'Jordan',
// url: 'https://www.example.com/product/path',
// image_url: 'https:///www.example.com/product/path.jpg'
// }
// ]
// });
}
</script>
</body>
</html>