Added call to function setup in template to log event in google analytics
Added function to be called on submit after validation so that the submit event can be logged in analytics