> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# WebinarJam에 Whop 픽셀 설치하기

> WebinarJam의 사용자 지정 추적 필드에 Whop 픽셀을 붙여 넣은 다음, 누군가 등록하면 lead 이벤트를 발생시키세요.

## 1. Whop 계정 ID 확인하기

[Whop 대시보드](https://whop.com/dashboard/)에서 확인할 수 있습니다. URL에서 `dashboard/` 뒤에 오는 `biz_`로 시작하는 부분입니다. `biz_xxxxxxxxxxx`와 같은 형태입니다.

![브라우저 주소 표시줄의 Whop 대시보드 URL, dashboard 뒤의 계정 ID에 밑줄 표시](https://mintcdn.com/whop/i81Det37UaKELkrh/images/dashboard-url.png?fit=max\&auto=format\&n=i81Det37UaKELkrh\&q=85\&s=f8dce6ea378318d4c89f7bce9239605d)

## 2. 웨비나의 추적 설정 열기

WebinarJam에서 웨비나를 열고 **Integrations > Integrate a 3rd Party Tracking System**으로 이동한 다음 **Embed Your Custom Tracking Code**를 선택하세요.

WebinarJam은 퍼널의 각 단계(등록 페이지, 등록 양식, 등록 후 감사 페이지, 라이브 룸, 다시보기 페이지)마다 별도의 추적 필드를 제공합니다.

## 3. 각 필드에 추적 코드 붙여 넣기

아래 각 스니펫에서 `biz_xxxxxxxxxxxxx`를 자신의 계정 ID로 바꾼 다음 해당하는 필드에 붙여 넣으세요.

**Registration Form Tracking**에는 기본 픽셀 스니펫을 넣습니다. 등록 양식은 주변 페이지와 분리된 자체 컨텍스트를 가진 팝업입니다. 방문자의 이메일, 이름, 전화번호 필드가 여기에 있으므로, 이를 통해 픽셀의 자동 필드 수집이 실제로 해당 필드를 볼 수 있습니다:

```html Registration Form Tracking theme={null}
<script>
!function(w,d,s,u,n,a,b){if(w[n])return;a=w[n]={q:[],t:+new Date,s:[],o:u,track:function(){a.q.push([+new Date].concat([].slice.call(arguments)))},setScope:function(){a.s=[].slice.call(arguments).filter(function(x){return typeof x==="string"});a.q.push([+new Date,"setScope"].concat(a.s))},scope:function(){var c=[].slice.call(arguments);return{track:function(){a.q.push([+new Date].concat([].slice.call(arguments)).concat([{__scope:c}]))}}}};b=d.createElement(s);b.async=1;b.src=u+"/s.js";d.getElementsByTagName(s)[0].parentNode.insertBefore(b,d.getElementsByTagName(s)[0])}(window,document,"script","https://t.whop.tw","whop");
whop.setScope("biz_xxxxxxxxxxxxx");
whop.track("page");
</script>
```

**Registration Page Tracking**에는 픽셀과 함께, 등록이 완료되는 즉시(감사 페이지로 리디렉션되기도 전에) `lead` 이벤트를 발생시키는 리스너를 넣습니다:

```html Registration Page Tracking theme={null}
<script>
!function(w,d,s,u,n,a,b){if(w[n])return;a=w[n]={q:[],t:+new Date,s:[],o:u,track:function(){a.q.push([+new Date].concat([].slice.call(arguments)))},setScope:function(){a.s=[].slice.call(arguments).filter(function(x){return typeof x==="string"});a.q.push([+new Date,"setScope"].concat(a.s))},scope:function(){var c=[].slice.call(arguments);return{track:function(){a.q.push([+new Date].concat([].slice.call(arguments)).concat([{__scope:c}]))}}}};b=d.createElement(s);b.async=1;b.src=u+"/s.js";d.getElementsByTagName(s)[0].parentNode.insertBefore(b,d.getElementsByTagName(s)[0])}(window,document,"script","https://t.whop.tw","whop");
whop.setScope("biz_xxxxxxxxxxxxx");
whop.track("page");

window.addEventListener("message", function (e) {
	if (e.origin !== "https://event.webinarjam.com") return;

	let data;
	try {
		data = typeof e.data === "string" ? JSON.parse(e.data) : e.data;
	} catch {
		return;
	}

	if (data.func === "redirect" && typeof data.url === "string" && data.url.indexOf("/thank-you") !== -1) {
		whop.track("lead");
	}
});
</script>
```

**Post-Registration Thank You Page Tracking**에는 백업 페이지 조회 기록으로 기본 픽셀 스니펫을 넣습니다:

```html Post-Registration Thank You Page Tracking theme={null}
<script>
!function(w,d,s,u,n,a,b){if(w[n])return;a=w[n]={q:[],t:+new Date,s:[],o:u,track:function(){a.q.push([+new Date].concat([].slice.call(arguments)))},setScope:function(){a.s=[].slice.call(arguments).filter(function(x){return typeof x==="string"});a.q.push([+new Date,"setScope"].concat(a.s))},scope:function(){var c=[].slice.call(arguments);return{track:function(){a.q.push([+new Date].concat([].slice.call(arguments)).concat([{__scope:c}]))}}}};b=d.createElement(s);b.async=1;b.src=u+"/s.js";d.getElementsByTagName(s)[0].parentNode.insertBefore(b,d.getElementsByTagName(s)[0])}(window,document,"script","https://t.whop.tw","whop");
whop.setScope("biz_xxxxxxxxxxxxx");
whop.track("page");
</script>
```

라이브 룸과 다시보기 페이지 방문도 추적하려면 해당 필드에도 기본 픽셀 스니펫을 추가하세요. 변경 사항을 저장하세요.

> [!NOTE]
>
> WebinarJam의 호스팅 등록 페이지 대신 자체 사이트에서 등록을 진행하나요? WebinarJam의 추적 필드는 자체 호스팅 페이지만 다루므로, 해당 페이지에 직접 스니펫을 설치하세요. 기본 [Whop 픽셀 가이드](https://docs.whop.com/ko/developer/ads/pixel.md)를 참고하세요.

## 4. 추적 여부 확인하기

라이브 등록 페이지를 방문한 다음 Whop 대시보드의 [Websites 페이지](https://whop.com/dashboard/websites)를 확인하세요. 페이지 조회가 들어오면 도메인이 그곳에 표시됩니다. 그런 다음 테스트 이메일로 등록하고 양식을 완료하는 순간 `lead` 이벤트가 기록되는지 확인하세요.

> [!NOTE]
>
> **구매, 구독, 체험판은 추적하지 마세요.** Whop은 모든 결제 페이지 조회, 구매, 구독, 체험판 시작을 별도 설정 없이 서버 측에서 기록합니다. 등록이나 참석처럼 Whop이 볼 수 없는 이벤트만 전송하세요.
