I have had sleep problems off and on for years and tried everything with varying degrees of success and mostly failure. Recently I started taking magnesium after our doctor recommended it for general health and I bought some online. It's called a magnesium sleep lotion - I was sceptical at first but it has made an amazing difference.
I would mention you really need to lift your magnesium to a certain level before if really takes effect - I've been taking a daily magnesium tablet too to build that up.
It's a lovely-smelling smooth lotion (has lavender and chamomile in it too) and, strangely, you rub a small amount into your feet just before you go to bed. My problem has mostly been waking frequently during the night and struggling to get back but since I started the lotion (on my second pump-pack bottle now) I find that even though I still occasionally wake up I usually go back to sleep quickly, and my sleep is deep and peaceful.
I have joined this forum as I have just been diagnosed with general anxiety and depression - health worries for myself and my husband plus other traumas. I am now taking an antidepressant which the doctor said was likely to cause insomnia but so far I have continued to sleep well!!!
I hope this helps someone.