'gotta' is informal, mostly verbal and national and generation specific.
People in their 30-40's, particularly Americans, seem to accept it more than others. For me, seeing it written, in anything other than song lyrics and quotations of conversations, where the point is make the pronunciation explicit, is garish.