Track source of leads from Facebook ads

  • Support_HSG
    Asked on April 29, 2024 at 2:56 PM

    I am currently using JotForm to collect lead applications, and the form submissions are being exported to a Google Sheet. I have multiple Facebook ad campaigns running, and I need a way to identify which specific ad a lead originated from within the Google Sheet.

    Currently, all leads are being recorded in the Google Sheet without any indication of their source ad campaign. I would like to be able to easily distinguish which Facebook ad generated each lead entry in the sheet.

    Could you please advise on the best approach to accomplish this?

  • Shane JotForm Support
    Replied on April 29, 2024 at 3:39 PM

    Hi Support_HSG,

    Thanks for reaching out to Jotform Support. You can use Get Referrer to determine what page your user was before accessing your form. With this, you can determine where the users originated, since the widget adds to every submission on your form the original URL that your user used to get to your form.

    Track source of leads from Facebook ads Image 1 Screenshot 20
    Give it a try and let us know if you have any other questions.

  • Support_HSG
    Replied on April 30, 2024 at 1:40 PM

    Hi there, thanks so much for the help. I've added this to the form but the problem is that it's not specifying which Facebook/Instagram ad the lead is coming from. It is only giving me the opt-in page website where the lead is filling out the form.

    To provide you with a few more details, I have multiple ads running to the same opt-in page. The JotForm is embedded onto that opt-in page. Therefore, JotForm is sending the url of the opt-in page as the referrer so I'm unable to know which ad they are coming from. Is there a different method?

  • Kyle JotForm Support
    Replied on April 30, 2024 at 2:03 PM

    Hi Support_HSG,

    Thanks for getting back to us. If you’re looking for a way to track which specific Facebook ad campaign a lead came from when they filled out your Jotform, which is embedded on the same opt-in page for multiple ads, you can use Facebook Pixel Widget. Let me show you how:

    1. In the Form Builder, click the Add Form Element button in the upper left corner.
    2. Navigate to the Widgets area.
    3. Add the Facebook Pixel to your form by searching for it and clicking on it. You can also add it by dragging and dropping. Track source of leads from Facebook ads Image 1 Screenshot 20
    4. In the widget Settings, input your Facebook Pixel ID.
    5. Select all items you want to track from the Events to Track area.
    6. Lastly, select the Update Widget button to save your changes.

    After you've installed the pixel on your form, you may test it to see how it works. This way, you can begin tracking conversions and create custom audiences for nearly any of the standard events you desire, such as form visits, completed payments, or completed registrations. We have a guide on Testing Pixel that you can check out.

    Give it a try, and let us know how it goes.

  • Support_HSG
    Replied on May 2, 2024 at 7:19 PM

    Hey there, thanks again for the help! I've installed the pixel on the form, but I'm still not able to track which ad campaign each specific lead is coming from.

    The JotForm is embedded and hosted on ClickFunnels. Is there a different way that I could be able to track which leads are coming from which campaign?

  • Lorenz JotForm Support
    Replied on May 2, 2024 at 9:53 PM

    Hi Support_HSG,

    Thanks for getting back to us. I'll be needing a bit more time to look into this. I'll be back with an update.

    Thanks for your understanding, we appreciate it.

  • Lorenz JotForm Support
    Replied on May 2, 2024 at 11:40 PM

    Hi Support_HSG,

    Thanks for patiently waiting. I assume you're working on this form 221354185755156, right? Could you try adding the Get Form Page URL widget to your form, it may help with what you're trying to do. It literally returns the whole URL of the page, where the form is filled out from, which should help capture the necessary data.

    Give it a try and let us know if there's anything else we can help you with.


  • Support_HSG
    Replied on May 5, 2024 at 2:50 PM

    Hi Lorenz, yes that is the correct form that I'm working on. I used the Get Form Page URL and it's only giving me the link of the opt-in page. I attached a screenshot of some of the inputs received on the google sheet.

    I was reading that I can essentially set up a UTM parameter on the Facebook Ad, which is what I did, but I'm not sure if it was set up properly.

    Track source of leads from Facebook ads Image 1 Screenshot 20


  • Lorenz JotForm Support
    Replied on May 5, 2024 at 9:39 PM

    Hi Support_HSG,

    Thanks for getting back to us. We can use short-text fields to capture the UTM parameters. You just need to make sure that the URL parameter target variable corresponds or matches the field's unique name. Let me walk you through it:

    1. In the Form Builder, add Short Text fields that will capture the UTM parameters.

    2. After that, enable the Hide feature of each UTM fields, so they won't appear on the user's view.

    Track source of leads from Facebook ads Image 1 Screenshot 30

    3. Lastly, check each short text field's unique name and ensure it matches the UTM parameter's variable. Say we have this page URL, with the corresponding parameters

    https://www.wthehermansiugroup.com.com/apply-1/?utm_source=Jotformtest&utm_medium=test&utm_campaign=jotformawesome


    The following variable in the URL:

    • utm_source
    • utm_medium
    • utm_campaign

    Should be each short-text field's unique name as well. Let me show you on how to check the field's unique name:

    1. In the Form Builder, select the UTM fields.

    2. Click on the Gear icon.

    3. Next, go to the Advanced tab.

    4. Lastly, click on the Field Details so see the unique name.

    Track source of leads from Facebook ads Image 2 Screenshot 41

    You can also follow this guide on How to Populate fields via URL Parameters.

    Give it a try and let us know how it goes.

 
Your Answer