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

# Instala el píxel de Whop en ClickFunnels

> Añade el píxel de Whop al campo Head Code de la configuración de tu embudo en ClickFunnels para que se registre cada paso, y luego confirma las visitas a páginas y añade eventos de lead.

## 1. Obtén el ID de tu cuenta de Whop

Encuéntralo en tu [panel de Whop](https://whop.com/dashboard/): es la parte de la URL después de `dashboard/`, que empieza por `biz_`. Tiene este aspecto: `biz_xxxxxxxxxxx`.

![URL del panel de Whop en la barra de direcciones del navegador, con el ID de cuenta después de dashboard subrayado](https://mintcdn.com/whop/i81Det37UaKELkrh/images/dashboard-url.png?fit=max\&auto=format\&n=i81Det37UaKELkrh\&q=85\&s=f8dce6ea378318d4c89f7bce9239605d)

## 2. Abre la configuración de código personalizado de tu embudo

En ClickFunnels, abre tu embudo, ve a **Funnel Settings > Custom Code** y abre el campo **Head Code**.

Configurarlo a nivel de embudo aplica el píxel a cada paso de ese embudo. Para aplicarlo en todos los embudos de tu cuenta, añádelo en el ajuste global **Header Code** de tu sitio en la aplicación Sites.

## 3. Pega el fragmento

Pega esto en el campo **Head Code**. Reemplaza `biz_xxxxxxxxxxxxx` por el ID de tu propia cuenta.

```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>
```

Guarda el embudo. ClickFunnels añade este código al `<head>` de cada paso automáticamente.

## 4. Confirma que está registrando

Visita un paso publicado del embudo y luego revisa la [página Websites](https://whop.com/dashboard/websites) en tu panel de Whop. El dominio de tu embudo aparecerá allí en cuanto llegue una visita a la página.

## 5. Registra leads y otros eventos del embudo

Si tu embudo tiene un paso de formulario, solicitud o reserva, añade una llamada a `whop.track` para él; consulta [Registra eventos](https://docs.whop.com/es/developer/ads/pixel.md#track-events) en la guía principal del píxel.

> [!NOTE]
>
> **No registres compras, suscripciones ni pruebas.** Whop registra en el servidor cada vista de checkout, compra, suscripción e inicio de prueba sin ninguna configuración. Envía solo los eventos que Whop no puede ver: leads y reservas.


## Related topics

- [Instala el píxel de Whop](https://docs.whop.com/es/developer/ads/pixel.md)
- [Instala el píxel de Whop en GoHighLevel](https://docs.whop.com/es/developer/ads/platforms/gohighlevel.md)
- [Instala el píxel de Whop en Shopify](https://docs.whop.com/es/developer/ads/platforms/shopify.md)
