I need to add Facebook leads directly to Wix CRM

Question:
Hello, I’m integrating wix CRM with Make to get my Facebook Leads to wix crm directly, but I have some probleme with the wix configuration, can anny one help me please ?

Product:
Wix API ( On the make documentation, they said that I need to create an API to get the data from Facebook Ads to Wixx CRM

What are you trying to achieve:
to add the leads from my facebook ads directly to wix CRM

What have you already tried:
I’ve tried to follow the documentation one the “MAke” guide lines

Do you have code that isn’t working? If so can you share it?

Not sure if “Integromat/Make” supports Wix anymore. Faster way to do it is to get the leads in make, and then run a post function to wix containing the data. Exposing a Site API with HTTP Functions

Using this data, then add a contact into Wix CRM https://www.wix.com/velo/reference/wix-crm-backend/contacts/createcontact

2 Likes

Yes of curse, I’ll share with you some screen capture

Thank you for your help

I’m not a very advanced in coding and web development, I’ll will try to real the documentation and see if it will be easy to understand, thank you for your response !

These docs may help you: Create Contact | REST

For example the query to the API in the screenshot above is sending the key firstname but it shouldn’t be supplied there instead it should be supplied as info.name.first. You’ll also need to look at the Make document to understand how to supply the info in the correct format as we can’t support Make here. Though to give you a hint the format looks like a standard JSON object.

I see you’re running into trouble with the Wix configuration in Make for your Facebook Leads integration.

It’s frustrating when the documentation doesn’t quite get you there.

You might be interested to know that you can often achieve a more robust and reliable setup for lead tracking and optimization without relying on a general-purpose automation platform like Make.

Instead of Make, a more sophisticated approach for tracking conversions, which you’ll need for lead quality, involves using the Facebook Conversions API in conjunction with your Wix CRM API.

While this sounds more complex, it gives you greater control over the data flow and improves Facebook’s ability to optimize your ads, as it overcomes issues like browser ad blockers or cookie restrictions.

The core idea is to first use the Wix CRM API to create or update the contact in Wix whenever a lead comes in.

This handles the part you are currently trying to do, ensuring the lead data is correctly captured in your Wix CRM.

Next, you would use the Facebook Conversions API to send the lead event information directly from your server (or a proxy server) to Facebook.

This “server-side” tracking is more reliable than the traditional browser-based Facebook Pixel.

To manage and implement both of these APIs without needing to write a lot of custom code, you’d typically use Google Tag Manager (GTM) for initial data capture and then send that data to a server-side solution.

The server-side component could be something like Stape or even a custom setup on Google Cloud Platform (GCP) or another cloud service.

Stape is often preferred because it offers a managed, specialized environment for server-side GTM, making setup much simpler than using a general cloud platform.

The process would involve setting up GTM on your Wix site to capture the lead information upon form submission.

You would then use a server-side GTM container, hosted on Stape or GCP, to receive this data.

Within that server-side container, you’d configure one request to hit the Wix CRM API to create the contact and a second request to hit the Facebook Conversions API to send the lead event, which is one of the Standard Events that Facebook uses for optimization.

This dual action ensures your CRM is updated and Facebook’s ad targeting is optimized using the most reliable data possible.

This method is considered a best practice in digital advertising for its accuracy and compliance.

1 Like