Streaming live at 10am (PST)

Integrating a Custom Facebook Conversion after a Form Signup

Hey everyone,

we are currently experimenting with Webflow as the tool to create our landing pages with.
One first project is the creation of a custom Landing page for a webinar event.
Main feature is a form, where people land after clicking on a facebook ad. The form button has the ID:“submitButton”. We also added this code snippet to track our events:

<!-- Add Pixel Events to the button's click handler -->
<script type="text/javascript">
  var button = document.getElementById('submitButton');
  button.addEventListener(
    'click', 
    function() { 
      fbq('track', 'Lead', {
        value: 20,
        currency: 'USD' 
      });          
    },
    false
  );
</script>

We’ve been using the “Test Events” function from the Facebook Pixel to assure our setup is working before launch, but unfortunately, it doesn’t.

Some more info:
We host landing pages on a subdomain of our website since the main one is hosted on WP.
Other events like “ViewContent” already get tracked on the Webflow Landing Page.

Thanks for your help in advance.

Best,
Max


Here is my site Read-Only: LINK
(how to share your site Read-Only link)