I guess this really depends on whether it is in a loan word or a native germanic one.
G in french-loan words(including those from old french, which seem quite indigenous to English) has been palatalized if followed by a front vowel. But germanic words retain the [g] sound.
People tend to palatalize 'g' before a front vowel if it appears in a Latin. But there are different ways to pronounce latin words, i like to copy the ancient way, in which all 'g's are unpalatalized.