Templates / Send server-side conversions to the Meta Ads API (CAPI)

Send server-side conversions to the Meta Ads API (CAPI)

Ready for 3.0

by JJ Tham ✓ · 1,788 views · created 2025-11-21 · Social Media

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls graph.facebook.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Edit Normalize PII (Edit Fields (Set)): sets 4 fields: normalized_email, normalized_phone, firstName…
  2. Crypto: hashes or encrypts values
  3. Crypto: hashes or encrypts values
  4. Crypto: hashes or encrypts values
  5. Crypto: hashes or encrypts values
  6. Set - Compute Timestamps & Map Fields (Edit Fields (Set)): sets 10 fields: conversion_timestamp, event_name, hashed_em…
  7. Preparing for HTTP Request Payload (Code): runs custom JavaScript code
  8. Sending Events To Facebook Pixel (HTTP Request): calls graph.facebook.com (POST)
  9. Respond to Webhook: sends the response back to the webhook caller

HTTP calls to: graph.facebook.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Struggling with inaccurate Meta Ads tracking due to iOS 14+ and ad blockers? 📉 This workflow is your solution. It provides a robust, server-side endpoint to reliably send conversion events directly to the Meta Conversions API (CAPI). By bypassing the…

Excerpt from JJ Tham's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.