The OP's profile says "Spain," but as the OP hasn't posted for three years, he/she might have moved.
I'd only use "gonna" or "wanna" in writing that was deliberately extremely informal, for instance, writing an email to a friend that "I gotta go to work tomorrow but I sure don't wanna."
I did some looking at ESL websites. Some encourage teachers to teach gonna, wanna, et al. because students need to be able to understand them in spoken speech. But I didn't see anything about teaching the reductions in writing. (The term for these kinds of pronunciations seems to be "reductions.")

