{
"user_id": "user_123",
"campaign": "newsletter_enero",
"subject": "Ofertas de Enero"
}
<!-- En tu email HTML -->
<html>
<body>
<h1>Hola {{ user.name }}!</h1>
<p>Contenido del email...</p>
<!-- Pixel de tracking al final -->
<img
src="https://cdp.companydomain.m1das.app/api/px/email_opened?writekey=TU_WRITE_KEY&user_id={{ user.id }}&campaign=promo_verano&email_id={{ email.id }}"
width="1"
height="1"
style="display:none;"
/>
</body>
</html>
<html>
<body>
<!-- Pixel de apertura -->
<img
src="https://cdp.companydomain.m1das.app/api/px/newsletter_opened?writekey=TU_KEY&user_id=123&newsletter_id=enero_2026"
width="1"
height="1"
style="display:none;"
/>
<h1>Newsletter Enero 2026</h1>
<!-- Link 1 con tracking -->
<a href="https://tienda.com/producto-a">
<img
src="https://cdp.companydomain.m1das.app/api/px/link_clicked?writekey=TU_KEY&user_id=123&link_id=producto_a&position=1"
width="1"
height="1"
style="display:none;"
/>
Producto A
</a>
<!-- Link 2 con tracking -->
<a href="https://tienda.com/producto-b">
<img
src="https://cdp.companydomain.m1das.app/api/px/link_clicked?writekey=TU_KEY&user_id=123&link_id=producto_b&position=2"
width="1"
height="1"
style="display:none;"
/>
Producto B
</a>
</body>
</html>
# Test simple con query parameters
curl "https://cdp.companydomain.m1das.app/api/px/test_pixel?writekey=TU_WRITE_KEY&test=true&user_id=test_123"
# Test con data en base64
curl "https://cdp.companydomain.m1das.app/api/px/test_pixel?writekey=TU_WRITE_KEY&data=eyJ1c2VyX2lkIjoidGVzdF8xMjMiLCJ0ZXN0Ijp0cnVlfQ=="
# Test con process_headers
curl -H "Referer: https://google.com" \
"https://cdp.companydomain.m1das.app/api/px/test_pixel?writekey=TU_WRITE_KEY&process_headers=true"
// Apertura
email_opened
// Click en link
email_link_clicked
// Desuscripción
email_unsubscribed
// Reenvío
email_forwarded
// Impresión de imagen
email_image_loaded