-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (79 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wildfire Tracking Example</title>
<script
src="https://www.dubcdn.com/analytics/script.js"
data-short-domain="getwildfire.link"
defer
></script>
<!-- Load the tracking script from jsDelivr -->
<script src="https://get-wildfire.github.io/track/index.js"></script>
</head>
<body>
<h1>Wildfire Tracking Demo Page</h1>
<p>This page demonstrates the Wildfire tracking script implementation.</p>
<!-- Test form to simulate lead generation -->
<form id="leadForm" onsubmit="return false;">
<h2>Sample Lead Form</h2>
<div>
<label for="name">Name:</label>
<input type="text" id="name" required />
</div>
<div>
<label for="email">Email:</label>
<input type="email" id="email" required />
</div>
<button type="submit">Submit Lead</button>
</form>
<script>
// Add form submission handler
document
.getElementById("leadForm")
.addEventListener("submit", function (e) {
e.preventDefault();
alert("Form submitted! Check the console for tracking events.");
});
</script>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
form {
margin-top: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
form div {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
}
input {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
button {
background-color: #4caf50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
</style>
</body>
</html>