-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbtn.html
More file actions
60 lines (57 loc) · 1.38 KB
/
btn.html
File metadata and controls
60 lines (57 loc) · 1.38 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<title>버튼 예제</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 40px;
background-color: #f5f5f5;
}
.button-container {
display: flex;
gap: 10px;
}
.btn {
padding: 10px 20px;
background-color: #3498db;
border: none;
color: white;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.2s ease;
}
.btn:hover {
background-color: #2980b9;
}
</style>
<script src="https://cdn.flarelane.com/WebSDK.js" charset="UTF-8"></script>
</head>
<body>
<h2>여러 개의 버튼</h2>
<div class="button-container">
<button class="btn" onclick="trackEvent()">trackEvent</button>
<button class="btn" onclick="trackEventWithData()">
trackEventWithData
</button>
</div>
<script>
FlareLane.initialize({
projectId: "a43cdc82-0ea5-4fdd-aebc-1940fe99b6c3",
});
function trackEvent() {
FlareLane.trackEvent("test_event!!");
}
function trackEventWithData() {
FlareLane.trackEvent("test_event!!", {
data: {
key1: "value1",
key2: "value2",
},
});
}
</script>
</body>
</html>