Yes, for sure the diet. The smelly stuff is usually associated with abdominal pain and/or nausea. A lot of times if someone doesn't have food sensitivities, it is only a minor dietary change that is needed. Just be aware that food sensitivities can cause this.
Welcome to the gastroenterology community! Many things can cause this. One of the big ones would be diet.