Hi guys,
I have created the database collection for a form and it is recording the data. I have the relevant field IDs and everything properly setup. The challenge is to pull the value/data from those fields into the following code.
$FPROM.trackSignup({
email:,
uid:},
function(){console.log(‘Callback received!’)});
This is the lead tracking code of FirstPromoter that I need to integrate into my site to track leads referred by affiliates.
The field IDs for Email and uid are:
_id
FirstName
I tried doing it using the following code but didn’t work:
$FPROM.trackSignup({
email:< wixData.insert(“LeadCapturesforAffiliates”, {" email": “value”});>,
uid:< wixData.insert(“LeadCapturesforAffiliates”, {“_id”: “value”});>},
function(){console.log(‘Callback received!’)});
Can anyone please help me set it up? Also, please let me know if it is only possible via creating hooks and integrating with Zapier?
Thanks in advance. Cheers!
PS: I posted this code in body text (upper)