You can do this two way... 1st is just make a java script function and on the onsubmit event add the fbq('track','AddToCart'); code inside it.
Lee mas