window.tf.createPopup('https://YOUR_TYPEFORM_URL', { container: document.getElementById('typeform-container'), onSubmit: function(){ fbq('track', 'Lead'); } });