There are a lot of apps to keep track. I use an app called migraine diary and it is very useful. It allows you to input duration, medications taken, level of severity, symptoms...I use it and showed it to my neurologist to paint a picture of how frequent they occur. It also creates a spreadsheet...