Solved

Tracking Form Submit to the Facebook Pixel

  • 28 November 2023
  • 1 reply
  • 166 views

Badge

Does anyone know how to track Facebook lead events when a Klaviyo form us successfully submitted? 

I have a Shopify store and I’m running lead campaigns. I’d like to track and optimise for leads. 

I’ve added the following code however when using the event testing tool on Facebook it’s not showing. I know I can set it up with the Facebook tool but this only fires when they click the button and not the successful submission! 

    <script>
window.addEventListener("klaviyoForms", function(e) {
if (e.detail.type == 'submit') {
/// FACEBOOK PIXEL ID
}
});
</script>

Thank you!!

icon

Best answer by Taylor Tarpley 29 November 2023, 22:28

View original

1 reply

Userlevel 7
Badge +60

Hi there @Willis

 

Welcome to the Community! Happy to help! 

 

I found a similar thread in the Community that I’d recommend checking out to gain more insight on this topic to execute this code successfully!

 

Hope this helps!

-Taylor 

Reply