Skip to main content

Facebook/Meta conversion API for eCommerce leads/orders

Workflow preview

Workflow preview
100%
Facebook/Meta conversion API for eCommerce leads/orders preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n workflow helps eCommerce businesses (especially in the Cash on Delivery space) send real time order events to the Meta (Facebook) Conversions API , ensuring accurate event tracking and bet...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.facebookgraphapi, n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.manualtrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Omar Akoudad.

Original n8n.io source

1.1 Workflow description

Title
Facebook/Meta conversion API for eCommerce leads/orders
Workflow name
Facebook/Meta conversion API for eCommerce leads/orders

This n8n workflow helps eCommerce businesses (especially in the Cash on Delivery space) send real-time order events to the Meta (Facebook) Conversions API, ensuring accurate event tracking and better ad attribution.

Features

  • Webhook Listener: Accepts incoming order data (name, phone, IP, user-agent, etc.) via HTTP POST/GET.

  • Data Normalization: Cleans and formats first_name, last_name, phone, and event_time according to Facebook's strict specs.

  • Data Hashing: Securely hashes sensitive user data (SHA256), as required by Meta.

  • Full Custom Data Support: Pass order value, currency, and more.

Ideal For:

  • Shopify, WooCommerce, custom stores (Laravel, Node, etc.)

  • Businesses using Meta Ads and needing high-quality server-side tracking

  • Teams without access to full dev resources, but using n8n for automation

How It Works:

  1. Receive Order from your store via Webhook or API.

  2. Format & Normalize fields to match Facebook’s expected structure.

  3. Encrypt Sensitive Fields using SHA256 (name, phone, email).

  4. Send to Facebook via the Conversions API endpoint.

Requirements:

  • A Meta Business Manager account with Conversions API access

  • Your Access Token and Pixel ID set up in n8n credentials

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Normalize data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Encrypt data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Send event to Meta

Type / Role
n8n-nodes-base.facebookGraphApi - facebookGraphApi
Config choices
Version 1

Block 7 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Test data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Execute workflow

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 12 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Format data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Facebook/Meta conversion API for eCommerce leads/orders
Complexity advanced
Nodes 17
Categories Social Media
Author Omar Akoudad
Published 23 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5136/5136.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Facebook/Meta conversion API for eCommerce leads/orders do?

This n8n workflow helps eCommerce businesses (especially in the Cash on Delivery space) send real time order events to the Meta (Facebook) Conversions API , ensuring accurate event tracking and bet...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.