Two spellings, one practical greeting
Goedemorgen and Goeiemorgen both contain the Dutch word for morning. The second version replaces goede with the conversational form goeie, which is also accepted in writing. You do not have to reserve it for your closest friends. If a bakery assistant greets you with either version, returning the same greeting is perfectly natural. Keep the two words together in writing when using the standard Dutch compound.
Listening for the Dutch g
The g in the greeting is not the hard sound at the beginning of English good. It is often pronounced with friction towards the back of the mouth, particularly in northern accents. In southern areas it may be noticeably softer. The unstressed vowel in the middle can also become very short. Listen to the rhythm of the entire greeting rather than trying to identify every written letter separately.
A different language in Fryslân
In the northern province of Fryslân, also known as Friesland, you may see or hear Goeiemoarn in West Frisian. Although its resemblance to Dutch is easy to spot, Frisian is a separate language rather than simply a local pronunciation of Dutch. Try it when a host or shopkeeper has already greeted you in Frisian. Dutch remains a practical choice if you are unsure which language someone prefers.