Segment.io integration

Hi! I have added the Segment.io snippet script to my Unbounce domain, which is auto-collecting Page events, so I am now looking for direction on adding Track events.

I would specifically like to add a Signed Up track event per Segment’s specs: https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#track-form. The only event property I need is the email field.

Can someone provide the javascript I would add to the domain or a specific page to accomplish this? Thanks!