You can wrap the analytics code in an IF statement so that it is only run when the page submits to itself.
First get the code added so that it tracks every visit to the page as if it was tracking the button submit. Then just add the IF statement so that it only adds the code after.