File size: 23,857 Bytes
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a25048
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
32b2b9a
 
 
e9fa16f
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
32b2b9a
 
e9fa16f
32b2b9a
 
e9fa16f
 
 
7a25048
32b2b9a
 
 
 
e9fa16f
32b2b9a
 
 
 
593f9f4
e9fa16f
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7a25048
e9fa16f
 
 
 
 
 
 
 
 
 
 
 
 
32b2b9a
e9fa16f
 
 
 
32b2b9a
e9fa16f
 
 
 
32b2b9a
 
 
e9fa16f
32b2b9a
 
e9fa16f
bcd71ae
7a25048
32b2b9a
 
 
e9fa16f
32b2b9a
 
bcd71ae
32b2b9a
e9fa16f
 
 
 
 
 
 
 
 
 
 
 
 
 
32b2b9a
e9fa16f
32b2b9a
e9fa16f
 
 
 
32b2b9a
e9fa16f
32b2b9a
e9fa16f
 
 
 
32b2b9a
e9fa16f
 
 
 
 
 
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
32b2b9a
 
 
7a25048
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
 
 
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
32b2b9a
 
 
 
 
 
 
7a25048
32b2b9a
 
 
 
 
 
 
 
f0f6fd0
7a25048
32b2b9a
 
 
 
 
 
 
 
 
 
 
 
 
 
e9fa16f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32b2b9a
 
 
 
 
e9fa16f
 
32b2b9a
 
 
 
 
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EV Cook Site - 방문자 좔적 ν™œμ„±ν™”</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            min-height: 100vh;
            color: #333;
        }
        
        .header {
            background: rgba(255, 255, 255, 0.95);
            padding: 20px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-size: 28px;
            font-weight: bold;
            color: #1e3c72;
        }
        
        .nav {
            display: flex;
            gap: 30px;
        }
        
        .nav a {
            color: #333;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }
        
        .nav a:hover {
            color: #1e3c72;
        }
        
        .main-container {
            max-width: 1200px;
            margin: 50px auto;
            padding: 0 20px;
        }
        
        .hero-section {
            background: white;
            border-radius: 20px;
            padding: 60px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            margin-bottom: 40px;
        }
        
        .hero-section h1 {
            font-size: 48px;
            color: #1e3c72;
            margin-bottom: 20px;
        }
        
        .hero-section p {
            font-size: 20px;
            color: #666;
            margin-bottom: 30px;
        }
        
        .tracking-status {
            background: #e8f5e9;
            border: 2px solid #4caf50;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .tracking-status h3 {
            color: #2e7d32;
            margin-bottom: 10px;
        }
        
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }
        
        .info-card {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .info-card:hover {
            transform: translateY(-5px);
        }
        
        .info-card h3 {
            color: #1e3c72;
            margin-bottom: 15px;
            font-size: 24px;
        }
        
        .info-card p {
            color: #666;
            line-height: 1.6;
        }
        
        .status-indicator {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #f5f5f5;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
        }
        
        .status-indicator.active {
            background: #e8f5e9;
            color: #2e7d32;
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #4caf50;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
            }
        }
        
        .tracking-details {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
            font-family: monospace;
            font-size: 14px;
        }
        
        .tracking-details .row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e0e0e0;
        }
        
        .tracking-details .row:last-child {
            border-bottom: none;
        }
        
        .tracking-details .label {
            font-weight: bold;
            color: #555;
        }
        
        .tracking-details .value {
            color: #1e3c72;
        }
        
        .buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        button {
            padding: 12px 30px;
            background: #1e3c72;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        button:hover {
            background: #2a5298;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        button.secondary {
            background: #757575;
        }
        
        button.secondary:hover {
            background: #616161;
        }
        
        .footer {
            text-align: center;
            padding: 40px 20px;
            color: white;
            margin-top: 60px;
        }
        
        .console-hint {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            text-align: center;
        }
        
        .console-hint code {
            background: #f8f9fa;
            padding: 2px 6px;
            border-radius: 3px;
            font-family: monospace;
        }
        
        .debug-panel {
            background: #f0f0f0;
            border: 2px solid #999;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
            display: none;
        }
        
        .debug-panel h3 {
            color: #333;
            margin-bottom: 10px;
        }
        
        .debug-log {
            background: white;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 10px;
            height: 200px;
            overflow-y: auto;
            font-family: monospace;
            font-size: 12px;
        }
        
        .debug-log .log-entry {
            margin: 2px 0;
            padding: 2px 5px;
        }
        
        .debug-log .success {
            color: #2e7d32;
            background: #e8f5e9;
        }
        
        .debug-log .error {
            color: #c62828;
            background: #ffebee;
        }
        
        .debug-log .info {
            color: #1565c0;
            background: #e3f2fd;
        }
    </style>
</head>
<body>
    <header class="header">
        <div class="header-content">
            <div class="logo">⚑ EV Cook</div>
            <nav class="nav">
                <a href="#home">ν™ˆ</a>
                <a href="#about">μ†Œκ°œ</a>
                <a href="#tracking">좔적정보</a>
                <a href="#contact">문의</a>
            </nav>
        </div>
    </header>

    <div class="main-container">
        <section class="hero-section">
            <h1>EV Cook 좔적 데λͺ¨ μ‚¬μ΄νŠΈ</h1>
            <p>이 μ‚¬μ΄νŠΈλŠ” 방문자 좔적 μ‹œμŠ€ν…œμ΄ ν™œμ„±ν™”λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€</p>
            
            <div class="tracking-status">
                <h3>πŸ” 좔적 μƒνƒœ</h3>
                <div class="status-indicator active">
                    <span class="status-dot"></span>
                    <span>좔적 ν™œμ„±ν™”λ¨</span>
                </div>
                
                <div class="tracking-details">
                    <div class="row">
                        <span class="label">Device ID:</span>
                        <span class="value" id="deviceId">λ‘œλ”© 쀑...</span>
                    </div>
                    <div class="row">
                        <span class="label">좔적 μ„œλ²„:</span>
                        <span class="value">seawolf2357-ev-cook-siteurl.static.hf.space</span>
                    </div>
                    <div class="row">
                        <span class="label">μ‚¬μ΄νŠΈ ID:</span>
                        <span class="value">c4562ca1</span>
                    </div>
                    <div class="row">
                        <span class="label">좔적 μ‹œμž‘:</span>
                        <span class="value" id="trackingStart">-</span>
                    </div>
                    <div class="row">
                        <span class="label">전솑 μƒνƒœ:</span>
                        <span class="value" id="trackingStatus">λŒ€κΈ° 쀑...</span>
                    </div>
                </div>
            </div>
            
            <div class="buttons">
                <button onclick="testTracking()">πŸ“Š 좔적 ν…ŒμŠ€νŠΈ</button>
                <button onclick="sendCustomEvent()">🎯 μ»€μŠ€ν…€ 이벀트</button>
                <button onclick="viewDetails()" class="secondary">πŸ“‹ 상세 정보</button>
                <button onclick="toggleDebug()" class="secondary">πŸ› 디버그 νŒ¨λ„</button>
            </div>
        </section>

        <div class="debug-panel" id="debugPanel">
            <h3>πŸ› 디버그 둜그</h3>
            <div class="debug-log" id="debugLog"></div>
            <div class="buttons" style="margin-top: 10px;">
                <button onclick="clearDebugLog()" class="secondary">둜그 μ§€μš°κΈ°</button>
                <button onclick="checkServerStatus()" class="secondary">μ„œλ²„ μƒνƒœ 확인</button>
            </div>
        </div>

        <div class="info-grid">
            <div class="info-card">
                <h3>πŸš€ μ‹€μ‹œκ°„ 좔적</h3>
                <p>νŽ˜μ΄μ§€ λ°©λ¬Έ, 클릭, 슀크둀 λ“± λͺ¨λ“  μ‚¬μš©μž ν™œλ™μ΄ μ‹€μ‹œκ°„μœΌλ‘œ μΆ”μ λ©λ‹ˆλ‹€. 개발자 도ꡬ μ½˜μ†”μ—μ„œ 좔적 둜그λ₯Ό 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.</p>
            </div>
            <div class="info-card">
                <h3>πŸ”’ κ°œμΈμ •λ³΄ 보호</h3>
                <p>λ””λ°”μ΄μŠ€ IDλŠ” λΈŒλΌμš°μ € 정보λ₯Ό 기반으둜 μƒμ„±λ˜λ©°, κ°œμΈμ„ 식별할 수 μžˆλŠ” μ •λ³΄λŠ” μˆ˜μ§‘ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.</p>
            </div>
            <div class="info-card">
                <h3>πŸ“ˆ 뢄석 λŒ€μ‹œλ³΄λ“œ</h3>
                <p>μˆ˜μ§‘λœ λ°μ΄ν„°λŠ” 좔적 μ„œλ²„μ˜ λŒ€μ‹œλ³΄λ“œμ—μ„œ μ‹€μ‹œκ°„μœΌλ‘œ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.</p>
            </div>
        </div>

        <div class="console-hint">
            πŸ’‘ <strong>개발자 도ꡬ ν™œμš©:</strong> <code>F12</code>λ₯Ό 눌러 Console νƒ­μ—μ„œ 좔적 이벀트λ₯Ό μ‹€μ‹œκ°„μœΌλ‘œ ν™•μΈν•˜μ„Έμš”!
        </div>

        <div id="detailsSection" style="display: none;">
            <section class="hero-section" style="margin-top: 40px;">
                <h2>πŸ“Š λΈŒλΌμš°μ € 상세 정보</h2>
                <pre id="browserDetails" style="text-align: left; background: #f5f5f5; padding: 20px; border-radius: 8px; overflow-x: auto;"></pre>
            </section>
        </div>
    </div>

    <footer class="footer">
        <p>&copy; 2025 EV Cook. λͺ¨λ“  ꢌ리 보유.</p>
        <p>좔적 μ„œλ²„: <a href="https://seawolf2357-ev-cook-siteurl.static.hf.space" target="_blank" style="color: white;">seawolf2357-ev-cook-siteurl.static.hf.space</a></p>
    </footer>

    <!-- Visitor Tracking Script -->
    <script>
    (function() {
        // 좔적 μ„œλ²„ URL
        const TRACKING_SERVER = 'https://seawolf2357-ev-cook-siteurl.static.hf.space/';
        const SITE_ID = 'c4562ca1';
        
        // λ””λ°”μ΄μŠ€ ID 생성/쑰회
        function getDeviceId() {
            let deviceId = localStorage.getItem('_tracker_device_id');
            if (!deviceId) {
                deviceId = 'DEV_' + Date.now() + '_' + Math.random().toString(36).substring(2, 9);
                localStorage.setItem('_tracker_device_id', deviceId);
            }
            return deviceId;
        }
        
        // 좔적 데이터 전솑
        async function collectAndSend(eventType = 'pageview', eventData = {}) {
            const data = {
                siteId: SITE_ID,
                deviceId: getDeviceId(),
                eventType: eventType,
                eventData: eventData,
                pageUrl: window.location.href,
                pageTitle: document.title,
                referrer: document.referrer,
                userAgent: navigator.userAgent,
                screenResolution: screen.width + 'x' + screen.height,
                platform: navigator.platform,
                language: navigator.language,
                timestamp: new Date().toISOString()
            };
            
            try {
                const response = await fetch(TRACKING_SERVER + '/call/process_tracking', {
                    method: 'POST',
                    headers: { 'Content-Type': 'application/json' },
                    body: JSON.stringify({ data: [JSON.stringify(data)] })
                });
                
                if (response.ok) {
                    const result = await response.json();
                    if (result.event_id) {
                        console.log('[Tracker] βœ… Event tracked');
                        updateTrackingStatus('전솑 μ™„λ£Œ');
                        addDebugLog('success', `이벀트 전솑 성곡: ${eventType}`);
                    }
                } else {
                    console.error('[Tracker] Server error:', response.status);
                    updateTrackingStatus('전솑 μ‹€νŒ¨');
                    addDebugLog('error', `μ„œλ²„ 였λ₯˜: ${response.status}`);
                }
            } catch(e) {
                console.error('[Tracker] Error:', e);
                updateTrackingStatus('λ„€νŠΈμ›Œν¬ 였λ₯˜');
                addDebugLog('error', `λ„€νŠΈμ›Œν¬ 였λ₯˜: ${e.message}`);
            }
        }
        
        // μ „μ—­ 좔적 ν•¨μˆ˜
        window._tracker = {
            trackEvent: function(eventName, eventData) {
                collectAndSend('custom', { name: eventName, data: eventData });
            }
        };
        
        // νŽ˜μ΄μ§€ λ‘œλ“œμ‹œ 좔적
        if (document.readyState === 'loading') {
            document.addEventListener('DOMContentLoaded', () => collectAndSend());
        } else {
            collectAndSend();
        }
        
        // 디버그 둜그 (UI μ—°λ™μš©)
        const debugLog = [];
        function addDebugLog(type, message) {
            const timestamp = new Date().toLocaleTimeString();
            debugLog.push({ type, message, timestamp });
            updateDebugPanel();
        }
        
        function updateDebugPanel() {
            const debugLogEl = document.getElementById('debugLog');
            if (debugLogEl) {
                debugLogEl.innerHTML = debugLog.slice(-50).reverse().map(entry => 
                    `<div class="log-entry ${entry.type}">[${entry.timestamp}] ${entry.message}</div>`
                ).join('');
            }
        }
        
        function updateTrackingStatus(status) {
            const statusEl = document.getElementById('trackingStatus');
            if (statusEl) {
                statusEl.textContent = status;
            }
        }
        
        // μ „μ—­ ν•¨μˆ˜ ν™•μž₯
        window._tracker.getDebugLog = function() {
            return debugLog;
        };
        
        // μ΄ˆκΈ°ν™” 둜그
        console.log('πŸ” EV Cook Tracker μ΄ˆκΈ°ν™”λ¨');
        console.log('μ„œλ²„:', TRACKING_SERVER);
        console.log('μ‚¬μ΄νŠΈ ID:', SITE_ID);
        console.log('λ””λ°”μ΄μŠ€ ID:', getDeviceId());
        addDebugLog('info', 'EV Cook Tracker μ΄ˆκΈ°ν™” μ™„λ£Œ');
    })();
    </script>
    <!-- End Visitor Tracking Script -->

    <!-- νŽ˜μ΄μ§€ κΈ°λŠ₯ 슀크립트 -->
    <script>
        // νŽ˜μ΄μ§€ λ‘œλ“œμ‹œ μ‹€ν–‰
        window.addEventListener('DOMContentLoaded', () => {
            // Device ID ν‘œμ‹œ
            setTimeout(() => {
                const deviceId = localStorage.getItem('_tracker_device_id');
                if (deviceId) {
                    document.getElementById('deviceId').textContent = deviceId;
                }
                document.getElementById('trackingStart').textContent = new Date().toLocaleString('ko-KR');
            }, 500);
        });
        
        // 좔적 ν…ŒμŠ€νŠΈ
        function testTracking() {
            if (window._tracker) {
                window._tracker.trackEvent('test_button_click', {
                    button: 'tracking_test',
                    timestamp: Date.now(),
                    location: 'hero_section',
                    userAction: true
                });
                alert('βœ… 좔적 μ΄λ²€νŠΈκ°€ μ „μ†‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€!\n\nμ½˜μ†”κ³Ό 디버그 νŒ¨λ„μ—μ„œ ν™•μΈν•˜μ„Έμš”.');
            } else {
                alert('❌ 좔적 μŠ€ν¬λ¦½νŠΈκ°€ λ‘œλ“œλ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.');
            }
        }
        
        // μ»€μŠ€ν…€ 이벀트 전솑
        function sendCustomEvent() {
            const eventName = prompt('이벀트 이름을 μž…λ ₯ν•˜μ„Έμš”:', 'custom_action');
            if (eventName && window._tracker) {
                const eventData = {
                    custom_name: eventName,
                    user_input: true,
                    timestamp: Date.now(),
                    metadata: {
                        viewport: {
                            width: window.innerWidth,
                            height: window.innerHeight
                        },
                        scroll: {
                            x: window.scrollX,
                            y: window.scrollY
                        }
                    }
                };
                
                window._tracker.trackEvent(eventName, eventData);
                
                alert(`βœ… '${eventName}' μ΄λ²€νŠΈκ°€ μ „μ†‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€!`);
                console.log('[Custom Event]', eventName, eventData);
            }
        }
        
        // 상세 정보 보기
        function viewDetails() {
            const details = {
                tracking: {
                    deviceId: localStorage.getItem('_tracker_device_id'),
                    siteId: 'c4562ca1',
                    serverUrl: 'https://seawolf2357-ev-cook-siteurl.static.hf.space',
                    startTime: new Date().toLocaleString()
                },
                browser: {
                    userAgent: navigator.userAgent,
                    platform: navigator.platform,
                    vendor: navigator.vendor,
                    language: navigator.language,
                    languages: navigator.languages,
                    cookieEnabled: navigator.cookieEnabled,
                    doNotTrack: navigator.doNotTrack,
                    onLine: navigator.onLine,
                    plugins: navigator.plugins.length
                },
                screen: {
                    resolution: screen.width + 'x' + screen.height,
                    availableResolution: screen.availWidth + 'x' + screen.availHeight,
                    colorDepth: screen.colorDepth,
                    pixelRatio: window.devicePixelRatio,
                    orientation: screen.orientation ? screen.orientation.type : 'Unknown'
                },
                viewport: {
                    width: window.innerWidth,
                    height: window.innerHeight,
                    scrollX: window.scrollX,
                    scrollY: window.scrollY
                },
                hardware: {
                    cpuCores: navigator.hardwareConcurrency || 'Unknown',
                    deviceMemory: navigator.deviceMemory ? navigator.deviceMemory + 'GB' : 'Unknown',
                    maxTouchPoints: navigator.maxTouchPoints || 0
                },
                location: {
                    href: window.location.href,
                    hostname: window.location.hostname,
                    protocol: window.location.protocol,
                    pathname: window.location.pathname,
                    search: window.location.search,
                    hash: window.location.hash
                },
                time: {
                    timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
                    offset: new Date().getTimezoneOffset(),
                    locale: new Date().toLocaleString()
                },
                storage: {
                    localStorage: typeof(Storage) !== "undefined",
                    sessionStorage: typeof(sessionStorage) !== "undefined",
                    indexedDB: 'indexedDB' in window,
                    cookies: navigator.cookieEnabled
                }
            };
            
            document.getElementById('browserDetails').textContent = JSON.stringify(details, null, 2);
            document.getElementById('detailsSection').style.display = 'block';
            
            // 상세 정보 보기도 좔적
            window._tracker.trackEvent('view_details', { 
                action: 'show_browser_info',
                detailsViewed: Object.keys(details)
            });
        }
        
        // 디버그 νŒ¨λ„ ν† κΈ€
        function toggleDebug() {
            const panel = document.getElementById('debugPanel');
            if (panel) {
                panel.style.display = panel.style.display === 'none' ? 'block' : 'none';
                if (panel.style.display === 'block') {
                    window._tracker.trackEvent('debug_panel_opened', { timestamp: Date.now() });
                }
            }
        }
        
        // 디버그 둜그 μ§€μš°κΈ°
        function clearDebugLog() {
            if (window._tracker && window._tracker.getDebugLog) {
                window._tracker.getDebugLog().length = 0;
                const debugLogEl = document.getElementById('debugLog');
                if (debugLogEl) {
                    debugLogEl.innerHTML = '<div class="log-entry info">λ‘œκ·Έκ°€ μ§€μ›Œμ‘ŒμŠ΅λ‹ˆλ‹€.</div>';
                }
            }
        }
        
        // μ„œλ²„ μƒνƒœ 확인
        async function checkServerStatus() {
            try {
                const response = await fetch('https://seawolf2357-ev-cook-siteurl.static.hf.space/');
                if (response.ok) {
                    alert('βœ… μ„œλ²„κ°€ μ •μƒμ μœΌλ‘œ μž‘λ™ μ€‘μž…λ‹ˆλ‹€.');
                } else {
                    alert('⚠️ μ„œλ²„ 응닡 μƒνƒœ: ' + response.status);
                }
            } catch (e) {
                alert('❌ μ„œλ²„μ— μ—°κ²°ν•  수 μ—†μŠ΅λ‹ˆλ‹€: ' + e.message);
            }
        }
        
        // μ½˜μ†”μ— 좔적 정보 좜λ ₯
        console.log('%cπŸ” EV Cook 좔적 μ‹œμŠ€ν…œ ν™œμ„±ν™”λ¨', 'color: #4CAF50; font-size: 16px; font-weight: bold;');
        console.log('%c좔적 μ„œλ²„:', 'font-weight: bold;', 'https://seawolf2357-ev-cook-siteurl.static.hf.space');
        console.log('%cμ‚¬μ΄νŠΈ ID:', 'font-weight: bold;', 'c4562ca1');
        console.log('%cDevice ID:', 'font-weight: bold;', localStorage.getItem('_tracker_device_id') || '생성 쀑...');
        console.log('\n%cπŸ’‘ Tip: 디버그 νŒ¨λ„ λ²„νŠΌμ„ ν΄λ¦­ν•˜μ—¬ μ‹€μ‹œκ°„ 좔적 둜그λ₯Ό ν™•μΈν•˜μ„Έμš”!', 'color: #666;');
    </script>
</body>
</html>