I have observed that people from America, greet by asking, "Hi, how is it going?". I usually say, "It is going good" and return a smile. Sometimes, I have observed people saying "Thank you" and returning the question. What is the proper etiquette here?
From the sounds of it, you're doing fine. Typical responses would include:
The "Thank You" may be appended to your response; its use is intended to thank the person for asking the question (good manners, etc.).
In general, respond with the same, if there is time. Sometimes the question is simply a formality with little to no expectation of a response (as in passing another person on the street with whom you have no relationship), but otherwise the expectation is to return the question, even though there is a high probablity the response will be positive (e.g., Good, Fine, etc.).
Rarely does one respond or hear the response of "bad" because, unfortunately, the question being asked isn't really what the other person is interested in. It's a culturally accepted thing to do, but it really doesn't amount to much more than a "Hi" and "Bye".
Variations on the theme include:
with similar responses (though "well" will often replace "good").
Technically, "going good" is incorrect grammar; you should use "going well", so "It is going well" is the proper response.
You are right, that is very common here. The "proper" answer is
It is not meant literally, and the questioner usually does not want to hear about whatever may be actually troubling you if you are not feeling "fine".
Even knowing this, greetings like this rather annoy me. I don't like lying if I'm not fine (even though you are supposed to) and answering them honestly requires more self-reflection than I should really have to go through on the spur of the moment just because I bumped into a casual acquaintance. So, even though it isn't proper etiquette, I like to turn it back around on the questioner and make them have to think.
To that end, I like to use these responses:
The last is a personal favorite, because it turns the question completely back to the questioner. At least half the time they don't even notice and don't think to answer.
In BE a mumbled embarrassed sub-vocalised 'ok'
In AE (Californian) a loud shouted GREAT, WONDERFULL, HOW ARE YOU ?
In AE (New York [Elderly]) a list of your more explicit intestinal symptoms and the doctors prognosis for them
In America, sometimes people don't even respond directly to this kind of question at all. For instance, I've often heard the following format involving a radio interviewer and his guest:
protected by RegDwigнt♦ Nov 2 '13 at 17:30
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?