Installation
To use SWT, include the script in your HTML file from the CDN.
SWT를 사용하려면 CDN을 통해 HTML 파일에 스크립트를 포함시키세요.
Features
Event Tracking
Monitors clicks, mouse movements, scrolls, page loads, and URL changes.
클릭, 마우스 움직임, 스크롤, 페이지 로드, URL 변경을 모니터링합니다.
Session Management
Automatically handles user sessions, including creation and retrieval.
세션 생성 및 조회를 포함하여 사용자 세션을 자동으로 관리합니다.
Built-in Dashboard
Provides a dashboard to visualize data with path flows, heatmaps, and session replays.
경로 흐름, 히트맵, 세션 리플레이 등으로 데이터를 시각화하는 대시보드를 제공합니다.
Easy Configuration
Configure tracking behavior easily using `data-swt-*` attributes in the script tag.
스크립트 태그의 `data-swt-*` 속성을 사용하여 추적 동작을 쉽게 구성합니다.
Session Replay
Visually replay user sessions to understand their journey and identify issues.
사용자 여정을 이해하고 문제를 식별하기 위해 사용자 세션을 시각적으로 재현합니다.
Data Export
Allows exporting collected session data to a CSV file for further analysis.
수집된 세션 데이터를 추가 분석을 위해 CSV 파일로 내보낼 수 있습니다.
Quick Start
Add the script tag to your HTML. The tracker will start automatically.
HTML에 스크립트 태그를 추가하세요. 트래커가 자동으로 시작됩니다.
Dynamic Script Insertion (for CDN usage)
You can also dynamically insert the SWT script from a CDN into your page. This is useful for external sites or when you prefer not to host the script directly.
CDN을 통해 SWT 스크립트를 페이지에 동적으로 삽입할 수도 있습니다. 이는 외부 사이트나 스크립트를 직접 호스팅하지 않으려는 경우에 유용합니다.
Configuration Options
These options are set asdata-swt-*
attributes on the<script id="swt">
tag:
이 옵션들은<script id="swt">
태그의data-swt-*
속성으로 설정됩니다:
Usage
Once the script is included, theswt
instance will be available globally on thewindow
object (i.e.,window.swt
).
스크립트가 포함되면swt
인스턴스는window
객체(예:window.swt
)에서 전역적으로 사용할 수 있습니다.
Available Methods
You can interact with theswt
instance directly from your browser's developer console or your JavaScript code.
브라우저의 개발자 콘솔이나 자바스크립트 코드에서 직접swt
인스턴스와 상호작용할 수 있습니다.
window.swt.run()
InitializeInitializes the tracker. This is automatically called on DOMContentLoaded unlessdata-swt-disabled-auto-start
is set.
트래커를 초기화합니다.data-swt-disabled-auto-start
가 설정되지 않은 경우 DOMContentLoaded 시 자동으로 호출됩니다.
window.swt.help()
InfoDisplays a help message in the console with available methods.
사용 가능한 메서드와 함께 콘솔에 도움말 메시지를 표시합니다.
window.swt.status()
QueryReturns the current session status and a list of past sessions.
현재 세션 상태와 과거 세션 목록을 반환합니다.
window.swt.showSession()
QueryDisplays the ID of the current active session in the console.
콘솔에 현재 활성 세션의 ID를 표시합니다.
window.swt.newSession()
ActionCreates a new session. You can optionally provide a sessionId and additional data for the session. If id is not provided, a random UUID is generated.
새 세션을 생성합니다. 선택적으로 sessionId와 세션에 대한 추가 데이터를 제공할 수 있습니다. id가 제공되지 않으면 임의의 UUID가 생성됩니다.
newSession(options?: { id?: string, data?: object })
window.swt.openDashboard()
ActionOpens a new browser window displaying the SWT Dashboard, which visualizes the collected session data.
수집된 세션 데이터를 시각화하는 SWT 대시보드를 표시하는 새 브라우저 창을 엽니다.
Example
Demonstration

Dashboard Features
The SWT Dashboard provides a visual interface to analyze the collected tracking data. It can be opened by callingwindow.swt.openDashboard()
from the tracked page.
SWT 대시보드는 수집된 추적 데이터를 분석하기 위한 시각적 인터페이스를 제공합니다. 추적 중인 페이지에서window.swt.openDashboard()
를 호출하여 열 수 있습니다.
The dashboard includes:
대시보드에는 다음이 포함됩니다:
Path Flow
Visualizes user navigation paths between pages.
페이지 간 사용자 이동 경로를 시각화합니다.

Timeline
Shows events over time for each session.
각 세션의 시간 경과에 따른 이벤트를 보여줍니다.

Event Distribution
Displays the distribution of event types across pages.
페이지 전반의 이벤트 유형 분포를 표시합니다.

Heatmap
Provides a heatmap of element interactions (clicks, visibility).
요소 상호작용(클릭, 가시성)에 대한 히트맵을 제공합니다.

Sankey Path Depth
Visualizes path depth changes using a Sankey diagram.
생키 다이어그램을 사용하여 경로 깊이 변화를 시각화합니다.

Error Log
Tracks and displays JavaScript errors grouped by page.
페이지별로 그룹화된 자바스크립트 오류를 추적하고 표시합니다.

Session Replay
Visually replays user sessions, showing mouse movements, clicks, and scrolls.
마우스 움직임, 클릭, 스크롤을 보여주며 사용자 세션을 시각적으로 재현합니다.

Session Filter
Allows filtering sessions based on various criteria.
다양한 기준에 따라 세션을 필터링할 수 있습니다.
