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

# Installér Whop Pixel på WooCommerce

> Tilføj Whop Pixel til en WooCommerce-butik med et header-script-plugin som WPCode, og bekræft derefter, at det registrerer sidevisninger.

WooCommerce er et WordPress-plugin, så det bruger den samme `<head>`-mekanisme som ethvert WordPress-website – WordPress eksponerer ikke `<head>`-tagget som standard, så du skal bruge et plugin, der tilføjer brugerdefineret kode der.

## 1. Find dit Whop-konto-ID

Find det i dit [Whop Dashboard](https://whop.com/dashboard/) – den del af URL'en, der kommer efter `dashboard/`, og som starter med `biz_`. Det ser sådan ud: `biz_xxxxxxxxxxx`.

![Whop-dashboardets URL i browserens adresselinje, med konto-ID'et efter dashboard understreget](https://mintcdn.com/whop/i81Det37UaKELkrh/images/dashboard-url.png?fit=max\&auto=format\&n=i81Det37UaKELkrh\&q=85\&s=f8dce6ea378318d4c89f7bce9239605d)

## 2. Installér et header/footer-script-plugin

Installér et plugin, der lader dig tilføje brugerdefineret kode til websitets header, såsom **WPCode** eller **Insert Headers and Footers**, fra **Plugins > Add New**.

## 3. Indsæt snippet'et

Åbn pluginets felt **Header**. Indsæt dette, og erstat derefter `biz_xxxxxxxxxxxxx` med dit eget konto-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>
```

Gem ændringerne. Pluginet tilføjer denne kode til `<head>` på hver side på websitet, inklusive butiks-, produkt- og kurvsiderne.

## 4. Bekræft, at sporingen virker

Besøg en live side, og tjek derefter [siden Websites](https://whop.com/dashboard/websites) i dit Whop-dashboard. Dit domæne vises der, så snart en sidevisning kommer igennem.

## 5. Spor leads og andre funnel-hændelser

Hvis din butik har en formular, en ansøgning eller et bookingtrin uden for checkout, skal du tilføje et `whop.track`-kald til det. Se [Spor hændelser](https://docs.whop.com/da/developer/ads/pixel.md#track-events) i den primære pixel-guide.

> [!NOTE]
>
> **Spor ikke køb, abonnementer eller prøveperioder.** Whop registrerer hver checkout-visning, hvert køb, hvert abonnement og hver start på en prøveperiode server-side uden nogen konfiguration. Send kun hændelser, Whop ikke kan se: leads og bookinger.


## Related topics

- [Installér Whop Pixel](https://docs.whop.com/da/developer/ads/pixel.md)
- [Installér Whop Pixel på Kajabi](https://docs.whop.com/da/developer/ads/platforms/kajabi.md)
- [Installér Whop Pixel på Shopify](https://docs.whop.com/da/developer/ads/platforms/shopify.md)
