Abu Hamid Muhammad al-Ghazali is widely regarded among Sunnis as one of the the most, if not the most respected theologians of Islam. He is even addressed as a Mujaddid, a believer who reignites faith in Islam among Muslims when it shows signs of losing it's vitality. Was this title/honorific bestowed on him in his own lifetime or was it given posthumously? Was his influence in the Muslim world exaggerated by Western imagination? How were his works viewed after the Siege of Baghdad when the thoughts of nascent Salafists gained traction?
From my understanding, Imam Ghazali was a super intelligent man in many subjects, but had some errors in his aqeedah. His aqeedah was Ash'ari while the pure sunni creed is that of Imam Ahmad ibn Hanbal. His works in the field of Tasawuff were extremely influential on the Muslim world, but i believe that some scholars like ibn Salah, Imam Maziri, and Shaykh Abu Bakr at Turtushi. Thought his works should be burned. Ihya ulum ad deen was actually burned by the murbit empire in morocco. I could be mistaken in that but that is what i recall. Suprisingly to some, Ibn taymiyyah said that we should be balanced in our approch to the book. He said to be aware of mistakes and false ahadith, but there is great benefit.
I hope this helped.
P.s. I am not saying that Ash'aris or Maturidis are not part of Ahlul Sunnah. Imam Saffarini considered the ash'aris, maturidis and Atharis to be all part of ASWJ.