trackForm attached through console but debugger does not show event on submission

I've been trying to get trackForm to work but even after I attach it manually, 

analytics.trackForm($('apply-form'),'Form Submitted');

I don't seem to be able to get it to trigger after clicking the submit button

Does anyone have any ideas?

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hi Tanner Chung - thanks for reaching out! For our trackForm method, the form needs to be either an element or array. Here's an example that should work:

    var form = document.getElementById('apply-form');
    analytics.trackForm(form, 'Form Submitted');

    Hope this info helps!

    Reply Upvote
  • Hey James I actually tried doing that as well and had no luck. 

    Reply Upvote
  • Hey Tanner, thanks for the quick feedback. In that case it'll be necessary to dig into your implementation specifics for a more definitive diagnosis; I would recommend that you open a tech support ticket via our contact form here: https://segment.com/contact

    Reply Upvote