> ## 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.

# Calendly와 함께 Whop 픽셀 설치하기

> 예약자를 Whop 픽셀과 schedule 이벤트가 있는 감사 페이지로 보내 Calendly 예약을 추적하거나, 임베드된 캘린더에서 예약을 감지하세요.

Calendly의 예약 페이지는 누군가 통화를 예약했을 때 웹사이트에 이를 알릴 수 없으므로, 일반적인 방법으로는 예약을 추적할 수 없습니다. 해결 방법: Calendly가 예약 후 예약자를 자체 사이트의 "감사" 페이지로 보내도록 설정하세요. 대신 그 페이지에 픽셀을 설치하면 예약자의 이름과 이메일을 자동으로 가져옵니다.

## 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. 감사 페이지 만들기

이미 사이트를 호스팅하고 있는 곳에 간단한 "감사" 또는 "통화 확정" 페이지를 만드세요. 예약자가 통화를 예약한 직후 도착하는 페이지입니다.

## 3. 예약 페이지에도 픽셀 설치하기

이 가이드의 다른 단계는 감사 페이지를 다루지만, 픽셀은 사람들이 실제로 통화를 예약하는 페이지(랜딩 페이지 또는 Calendly 스케줄러가 임베드되거나 링크된 곳)에도 있어야 합니다. 그곳에 픽셀이 없으면 해당 페이지의 페이지 조회수나 광고 클릭은 보이지 않고 최종 예약만 보입니다. 이 코드를 해당 페이지의 `<head>`에 붙여 넣으세요. `biz_xxxxxxxxxxxxx`를 자신의 계정 ID로 바꾸세요.

```html Pixel snippet 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>
```

사이트 빌더에서 `<head>`를 편집할 수 없다면 이 섹션의 전용 가이드를 확인하세요. 또는 이미 Google Tag Manager를 사용하고 있다면 모든 페이지에서 실행되는 Custom HTML 태그로 동일한 코드를 추가하세요.

## 4. Calendly가 예약자를 내 페이지로 보내도록 설정하기

이벤트 유형을 열고 **Edit > More options > Confirmation page**로 이동하세요. **After booking** 아래에서 **Redirect to an external site**를 선택하고 감사 페이지의 URL을 입력하세요. **Pass event details to your redirected page**를 켜세요. 이 설정으로 Calendly가 리디렉션과 함께 예약자의 이름과 이메일을 전송합니다.

## 5. 감사 페이지에 픽셀 스니펫 붙여 넣기

3단계의 동일한 픽셀 스니펫을 감사 페이지의 `<head>`에도 붙여 넣으세요. 예약 페이지뿐만 아니라 퍼널의 모든 페이지에 각각 스니펫이 있어야 합니다.

## 6. 예약을 기록하는 스니펫 하나 더 추가하기

감사 페이지의 픽셀 스니펫 바로 아래에 이 코드도 붙여 넣으세요. Calendly는 이미 페이지의 웹 주소에 예약자의 이름과 이메일을 포함하며, 이 코드가 이를 자동으로 가져옵니다. 아무것도 입력할 필요가 없습니다:

```html Track a booking theme={null}
<script>
var params = new URLSearchParams(window.location.search);
whop.track("schedule", {
	email: params.get("invitee_email") || undefined,
	name: params.get("invitee_full_name") || undefined,
});
</script>
```

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

흐름을 통해 통화를 예약한 다음 Whop 대시보드의 [Websites 페이지](https://whop.com/dashboard/websites)를 확인하세요. 페이지 조회가 들어오면 도메인이 그곳에 표시됩니다.

## 대신 자체 페이지에 Calendly를 임베드하나요?

`calendly.com`으로 링크하는 대신 페이지에 Calendly 스케줄러를 직접 임베드하는 경우(**Share > Add to Website**), 리디렉션을 건너뛰고 해당 페이지에서 바로 예약 완료를 감지할 수 있습니다. 3단계의 픽셀 스니펫은 여전히 같은 페이지에 있어야 합니다:

```html Track a booking on an embedded calendar theme={null}
<script>
window.addEventListener("message", function (e) {
	const isCalendlyEvent = e.origin === "https://calendly.com" && e.data.event && e.data.event.indexOf("calendly.") === 0;
	if (!isCalendlyEvent || e.data.event !== "calendly.event_scheduled") return;

	whop.track("schedule");
});
</script>
```

> [!NOTE]
>
> 이 메시지는 예약이 발생했음을 확인하지만, 초대 대상자의 이름이나 이메일은 포함하지 않습니다. Calendly는 개인정보 보호를 위해 클라이언트 측 이벤트에서 이 정보를 제외합니다. 퍼널의 앞 단계에서 이미 방문자의 정보를 수집했다면 동일한 `track` 호출에 전달하거나, 대신 위의 리디렉션 방법을 사용하세요.

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