Everytime you have a headache, immediately make a list of things you did / what you ate and after a while you'll realize there is a common factor thats causing the headache and that would be your Migraine Trigger Factor.
For example, everytime I got a headache, I realized it was when the bright sunlight hit my eyes, so I now use an umbrella and wear really dark glasses.