What This Workflow Does
This n8n workflow solves the critical problem of inaccurate ad attribution for eCommerce businesses, particularly those using Cash on Delivery (COD) payment methods. When customers don't complete transactions immediately (as with COD), traditional browser-based tracking often fails to connect the eventual purchase back to the original ad.
The workflow automatically sends order confirmation data directly from your eCommerce system to Meta's Conversion API, ensuring every sale is properly attributed to your Facebook and Instagram ads. This server-to-server connection bypasses browser tracking limitations, giving you more accurate ROI data and better ad optimization.
How It Works
1. Trigger on new orders
The workflow monitors your eCommerce platform for new orders, including COD orders that may be confirmed later. It can connect to Shopify, WooCommerce, or custom databases via API.
2. Prepare conversion event data
The system structures the order information into Meta's required Conversion API format, including customer details, product information, and transaction value. For COD orders, it waits for payment confirmation before sending the event.
3. Send to Meta Conversion API
The workflow securely transmits the conversion event directly to Meta's servers, including all necessary parameters for accurate attribution. It handles authentication and retries if needed.
4. Verify and log results
Each API response is checked for success, with failed attempts automatically retried. All events are logged for reconciliation with your ad reports.
Who This Is For
This workflow is ideal for:
- eCommerce stores using Cash on Delivery payment options
- Businesses seeing discrepancies between reported ad conversions and actual sales
- Merchants running Facebook/Instagram ads with iOS-heavy audiences
- Companies wanting more accurate ROI measurement for their ad spend
What You'll Need
- An active Meta Business account with Ads Manager access
- Your Meta Pixel ID and Conversion API access token
- An eCommerce platform or database that can trigger on new orders
- n8n instance (self-hosted or cloud)
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure the eCommerce platform connection
- Enter your Meta API credentials
- Test with sample order data
- Activate the workflow
Key Benefits
20-40% more tracked conversions: Server-side tracking captures purchases that browser-based methods miss, especially from iOS devices and privacy-focused browsers.
Better ad optimization: Meta's algorithm uses your accurate conversion data to find more high-value customers, reducing wasted ad spend.
Simplified COD tracking: Automatically attribute Cash on Delivery orders to the original ad, even when fulfillment happens days later.
Future-proof tracking: As browser privacy restrictions increase, server-side tracking becomes essential for maintaining visibility into ad performance.
Pro tip: For COD businesses, configure the workflow to send purchase events only after payment confirmation to avoid over-reporting conversions.