Contact Form Addition

Hello, I’m looking to integrate two additions to the base contact form that is offered by Webflow. Can you help me?

  1. Add a google analytics tag / event on success. My current contact form fades in a success message, but because it’s already rendered in the DOM but hidden, I cannot simply add my script there. Is there a way to run JS code after the form in submitted?
  2. I’d like to parse my URL to get the UTM tags if there are any and pass these into my email that my team gets. Is there any way/place to use javascript to parse the URL and pass it to the form content?

Thanks,

Unfortunately, I cannot provide a read-only link as my site is still under development and is private.