The inbuilt contact form uses AJAX and so there is no “thankyou” page that can be tracked as a goal with Google Analytics. I think you’ll need to install a contact form plugin that has the ability to set a separate “thankyou” page that can be tracked.