Event Code Generator

Pick an event, fill the values, and get the exact JSON each platform expects: Meta Conversions API, GA4 Measurement Protocol and TikTok Events API. Useful for testing with curl or Postman before writing real code.

POST https://graph.facebook.com/v21.0/{PIXEL_ID}/events?access_token={TOKEN}
{
  "data": [
    {
      "event_name": "Purchase",
      "event_time": 1789140369,
      "event_id": "purchase_ORDER-1024_1789140369",
      "action_source": "website",
      "event_source_url": "https://yourstore.com/checkout/thanks",
      "user_data": {
        "em": [
          "<SHA256 of lowercased email>"
        ],
        "ph": [
          "<SHA256 of digits-only phone>"
        ],
        "client_ip_address": "{VISITOR_IP}",
        "client_user_agent": "{VISITOR_UA}"
      },
      "custom_data": {
        "value": 1500,
        "currency": "BDT",
        "order_id": "ORDER-1024",
        "content_ids": [
          "SKU-123"
        ],
        "content_type": "product"
      }
    }
  ]
}

Placeholders in braces need your real credentials. Identifiers must be SHA-256 hashed after normalizing (lowercase email, digits-only phone) - all three platforms reject or ignore raw PII.

Or never write these payloads again

PixelFox builds and sends these exact payloads for you on every conversion, with hashed match keys, event_id dedup and delivery status you can see.

Automate your events