一键导入
test-integration
Verify Affitor tracking pipeline end-to-end with CLI test commands. Triggers on "test tracking", "verify integration", "test affitor".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify Affitor tracking pipeline end-to-end with CLI test commands. Triggers on "test tracking", "verify integration", "test affitor".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Install the Affitor tracker to capture affiliate clicks and store attribution cookies. Triggers on "add affiliate tracking", "install tracker", "click tracking".
Track sales and revenue for affiliate commission attribution via Sale API or Stripe metadata. Triggers on "track sales", "payment tracking", "commission tracking".
Track user signups for affiliate attribution via browser helper or server-side lead API. Triggers on "track signups", "lead tracking", "affiliate signup".
Auto-configure Stripe webhooks for affiliate sale tracking via CLI OAuth flow. Triggers on "stripe setup", "webhook setup", "stripe integration".
| name | test-integration |
| description | Verify Affitor tracking pipeline end-to-end with CLI test commands. Triggers on "test tracking", "verify integration", "test affitor". |
| license | MIT |
| metadata | {"author":"affitor","version":"1.0.0","organization":"Affitor"} |
Verify your Affitor tracking pipeline works end-to-end using the CLI.
# Test click tracking
npx affitor test click
# Test signup/lead tracking
npx affitor test lead
# Test sale/payment tracking
npx affitor test sale
Each command sends a test event to the Affitor API and confirms it was received and processed correctly.
test clicktest leadtest salenpx affitor status
Shows:
| Issue | Fix |
|---|---|
| "No config found" | Run npx affitor init first |
| "Invalid API key" | Re-run npx affitor init to get a new key |
| "Click test passed but lead failed" | Check that customer_key matches between signup and sale calls |
| "Sale test shows $0 commission" | Verify commission rate is set in your program settings |
For browser-side tracking issues, enable debug mode to see events in the browser console:
<script src="https://api.affitor.com/js/affitor-tracker.js"
data-affitor-program-id="YOUR_PROGRAM_ID"
data-affitor-debug="true">
</script>
Or with the SDK:
const affitor = await loadAffitor('YOUR_PROGRAM_ID', { debug: true });