I could write the book on earwax
Yup. I've probably gotten my ears impacted a couple of times a year every year since I was a kid. Not to the point of surgery (not sure what they did??

) but to the point of drs water-piking my ears (flushing them out with a machine) and/or digging stuff out. It gets all hardened up in there up against the eardrum and forms a rocklike plug! Not only can you not hear a thing but it hurts and I used to end up with an ear infection or eardrum irritation each time.
The issue is - and this is most likely the case for your daughter -- that there is something about the way the ear canal (or whatever ear bits and pieces there are in there

) is shaped that can make it hard for the earwax to come out. Mine are very narrow, probably due to genetics and frequent ear infections as a kid. Hence, earwax forms deep in the ear but is not able to naturally move outward and fall out o the ear (as it does for most people). Thus, the crap gets stuck in there.
For the last three years, I have had zero impactions requiring a doctor's visit. Here is what I have done to prevent them. It's basically a matter of keeping on top of the issue by vigilantly trying to remove wax BEFORE they get impacted.
1) frequently flush out the ears. After they get cleaned by the doctor, have her put some warm (not hot) water in her ears every day or every other day, like in the shower or via a baby ear bulb. Let the water sit in there for ten or twenty seconds, and then have her turn and shake her head to get it out. Don't have her do this when the ears are full of gunk (like right now!!) 'cuz ... trust me on this ... the water will get down near the eardrum and get stuck BEHIND a plug of wax and never come out.

Do this frequently and the wax won't build up. You can put some drops in her ears afterwords to dry them (swimmer's ear drops?) because you don't want it to be damp and gross in there all the time 0-- good conditions for an ear infection.
2) if they get to the point of STARTING to get full of earwax/impacted (before it starts hurting or she can't hear anymore), get a baby ear bulb or blunt-tipped irrigation syringe (the doc can give you one) and irrigate the heck outta her ears. have her stand in the shower or put her head over the sink, fill the ear bulb with something like 75 percent water and 25 percent hydrogen peroxide (make sure it is body temperature!!! too hot or too cold = uncomfortableness and even dizziness/nausea), stick the ear bulb firmly into her hear and squirt as hard as she'll let you (you want to get the water really moving to dislodge that wax). YOu're going to have to do this several times so set aside a chunk of time in your calendar, 'cuz it's gonna be a while.

Have her shake that water out in between bulbs of water. She can also gently rub the outside of her ear and push on the flap. Eventually with a lot of time and effort and fingers crossed, you will get those suckers cleaned out! She shold be able to tell you when they feel clean and her hearing seems better. Use those drying ear drops afterwords to prevent an infection.
3) No q-tips or anything else IN the ear canal. Trust me on this -- it will push that wax down deeper and cause problems. However, you can take a q-tip and gently clean around the opening to the canal and go in a tiny bit, like a millimeter or something, to clean out any wax that's made it out to the surface.
If you stay on top of this, I think you can get control over the situation. Her hearing is precious and hearing issues negatively impact in-school learning, speech, and comprehension, so it's important!