Send hashed backend conversions to Meta Conversions API and Google Ads
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set config (ids & versions) (Edit Fields (Set)): sets 7 fields: META_PIXEL_ID, META_API_VERSION, META_TEST_EVENT_CODE…
- Read backend conversions (example rows) (Code): runs custom JavaScript code
- Expand & normalize identifiers (Code): runs custom JavaScript code
- Hash identifier (SHA-256) (Crypto): hashes or encrypts values
- Regroup hashed identifiers per conversion (Code): runs custom JavaScript code
- Route to Meta (skip google-only) (Filter): keeps only the items that match a condition
- Route to Google (skip meta-only) (Filter): keeps only the items that match a condition
- Build Meta CAPI payload (Code): runs custom JavaScript code
- Build Google Ads payload (Code): runs custom JavaScript code
- Send to Meta Conversions API (HTTP Request): calls an HTTP API (POST)
…plus 1 more step. See the full node list below.
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Crypto
n8n-nodes-base.crypto - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow reads backend conversion events, normalizes and SHA-256-hashes required identifiers, and then sends each conversion to Meta Conversions API, Google Ads Enhanced Conversions, or both using HTTP requests with environment-based…