Send server-side conversions to the Meta Ads API (CAPI)
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 browser, you can achieve more accurate ad attribution and optimize your campaigns with better data. This template handles all the required data normalization, hashing, and formatting, so you can set up server-side tracking in minutes. โ๏ธ How it
At a glance
Send server-side conversions to the Meta Ads API (CAPI) is a ready-made n8n workflow you import as a workflow JSON file โ no build required. It connects Facebook. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Modules
- 10
- Price
- Free
- Version
- v1.0

About this workflow
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 browser, you can achieve more accurate ad attribution and optimize your campaigns with better data. This template handles all the required data normalization, hashing, and formatting, so you can set up server-side tracking in minutes. โ๏ธ How it works This workflow provides a webhook URL that you can send your conversion data to (e.g., from a web form, CRM, or backend). Once it receives the data, it: - Sanitizes User Data: Cleans and normalizes PII like email and phone numbers. - Hashes PII: Securely hashes the user data using SHA-256 to meet Meta's privacy requirements. - Formats the Payload: Assembles all the data, including click IDs (fbc, fbp) and user info, into the exact format required by the Meta CAPI. - Sends the Event: Makes a direct, server-to-server call to Meta, reliably logging your conversion event. ๐ฅ Whoโs it for? - Performance Marketers: Improve ad performance and ROAS with more accurate conversion data. - Lead Generation Businesses: Reliably track form submissions as conversions. - E-commerce Stores: Send purchase events from your backend to ensure nothing gets missed. - Developers: A ready-to-use template for implementing server-side tracking without writing custom code from scratch. ๐ ๏ธ How to set up Setup is straightforward. You'll need your Meta Pixel ID and a CAPI Access Token. For a complete walkthrough, check out the tutorial video for this workflow on YouTube: The basic steps are to copy the webhook URL, configure your form or backend to send the correct data payload, and add your Meta Pixel ID and Access Token to the final HTTP Request node. ๐ For a detailed, step-by-step guide, please refer to the yellow sticky note inside the workflow.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n โ click the menu โ Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Transform new orders from ShipStation to Offline events in Facebook
Post new Typeform entries to Facebook Groups
Send new donation from Wild Apricot to Facebook Conversions API as new event
Send Mailgun email to new Facebook Lead Ads leads
Share your Instagram photos to Facebook Groups
Create and publish AI carousel posts from Telegram to Instagram, Facebook and TikTok with OpenAI, APITemplate.io and Blotato
Summarise Slack channel activity for weekly reports with AI
Auto-generate LinkedIn content with Gemini AI: posts & images 24/7
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint โ instant download
- Setup guide PDF included
- 5 downloads ยท valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you