Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/cvaneyk/custom-pixels/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Plugin de WordPress para tracking full-funnel con envío browser + server y deduplicación por event_id.
| Plataforma | Navegador | Servidor |
|---|---|---|
| Meta | Pixel (fbq) |
Conversions API (Graph v26.0) |
| TikTok | Pixel (ttq) |
Events API 2.0 (/open_api/v1.3/event/track/) |
| ChatGPT (OpenAI Ads) | Pixel (oaiq) |
Conversions API (https://bzr.openai.com/v1/events) |
Eventos soportados
| Evento del plugin | Meta / TikTok | ChatGPT |
|---|---|---|
| PageView | PageView / ttq.page() |
page_viewed |
| ViewContent | ViewContent | contents_viewed |
| AddToCart | AddToCart | items_added |
| InitiateCheckout | InitiateCheckout | checkout_started |
| Purchase | Purchase | order_created |
| CompleteRegistration (envío de formularios) | CompleteRegistration | registration_completed |
| Lead | Lead | lead_created |
| Schedule | Schedule | appointment_scheduled |
| Subscribe / StartTrial | Subscribe / StartTrial | subscription_created / trial_started |
Contact (clic en tel:) |
Contact | custom telefono |
| Contact (clic en WhatsApp) | Contact | custom whatsapp |
| AddPaymentInfo, Search, ScrollDepth, OutboundClick, Click | sí | no se envían |
Los importes se envían a ChatGPT en unidades menores (49,90 EUR → amount: 4990).
Integración de checkout personalizado
Dispara hooks desde tu lógica de negocio:
do_action('custom_pixels_view_content', $payload);
do_action('custom_pixels_add_to_cart', $payload);
do_action('custom_pixels_initiate_checkout', $payload);
do_action('custom_pixels_purchase', $payload);
$payload puede incluir:
event_id(string)consent(bool)email(string)phone(string)external_id(string)value(number/string)currency(string, ej. EUR)content_ids(array)contents(array de{id, quantity, item_price})order_id(string)event_source_url(string)
API JS frontend
// Si "Requerir consentimiento" está activo, llama a esto desde tu banner de cookies.
window.CustomPixels.grantConsent();
window.CustomPixels.track("AddToCart", {
custom_data: {
value: 49.9,
currency: "EUR",
content_ids: ["sku_123"],
},
user_data: {
email: "user@example.com",
},
});
Datos de usuario
- Email, teléfono y
external_idse hashean con SHA-256 antes de salir del servidor (y en el navegador para TikTok/ChatGPT). - Teléfonos sin prefijo internacional reciben el prefijo telefónico configurado (por defecto
34). - Se leen automáticamente las cookies
_fbp,_fbc,_ttp,__obref,__opprefy los parámetrosfbclid/ttclid.
QA / Debug plan (E2E)
- Configurar IDs/tokens en
Ajustes > Custom Pixels. - Activar
Modo debug. - Confirmar carga de
fbq,ttqyoaiqen el frontend. - Confirmar
PageViewbrowser. - Enviar un evento custom por JS (
window.CustomPixels.track(...)). - Verificar en
WP_DEBUG_LOGque el evento se registró conevent_id. - Validar eventos test con:
- Meta Events Manager (Test Events)
- TikTok Events Manager (Test Events)
- ChatGPT: activar
Modo validación(envíavalidate_only: true) y revisar la pestaña de conversiones de Ads Manager.
- Confirmar deduplicación cliente/servidor usando el mismo
event_id. - Confirmar que con
require_consent=1no se disparan eventos sin consentimiento.
Releases
5 releases.
Tag
Published
v0.2.0
latest
Oct 30, 2026 3d ago
Jun 3, 2026 5mo ago
Jun 3, 2026 5mo ago
Jun 3, 2026 5mo ago
May 29, 2026 5mo ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.