I've had that problem for years, and the first thing I found out is that almost no anti-fog product works if you don't tackle the root of the problem. Anti-fog sprays help a bit, but they're just a band-aid; the important thing is understanding that fogging comes from condensation that forms when the warm air from your face hits the cold lens. If the goggles have a factory anti-fog coating and they're still fogging up completely, that coating probably deteriorated or never worked properly.
What's really going to change the game for you is a combination: first, make sure ventilation is completely open (the others mention it for a reason, but you'd be surprised how many people don't even try it). Second, look for goggles with active ventilation or at least with well-designed air intake and exhaust holes. And here's what nobody talks about: before you put the goggles on, leave them outside in the cold for a few minutes so the inner lens cools down. When you put them on later, the temperature contrast is smaller and condensation takes longer to show up.
If none of that works, think about replacing them. Sometimes you just buy goggles with poor ventilation and no anti-fog product is going to fix that. Some specific brands have a reputation for keeping visibility better precisely because their airflow design is superior. It's worth investing in that because skiing without seeing is not skiing.