Go online and do a search for magnesium oil. It's not really oil, but it has a slippery texture on the skin so they call it oil. What you're looking for is pure magnesium chloride in a suspension of purified water. Norman Shealy makes a very good lotion with magnesium oil. You can purchase a bottle of it on Amazon.com for about $20 US currency.
There is a lot of research that suggests most of the world's population, especially in the industrialized countries, is severely magnesium deficient. Our soils are highly depleted so food contains barely a fraction of what we actually need for good health. Oral magnesium supplements are more or less useless as they pass through the body almost totally unabsorbed, some more so, some less depending on the form of magnesium used in the supplement. Magnesium chloride is the form most readily utilized by the human body.
Magnesium oil is rubbed into the skin either as the raw oil or in a combination product with a carrier like grapeseed oil or Shealy's lotion. It's absorbed transdermally through the skin so a great deal of it successfully gets into the body. In the case of the lotion I mentioned you would rub about a teaspoon of it over as much of your skin as you can get it once in the morning and once right about bedtime. Magnesium calms the nervous system, steadies the heart, causes smooth muscle tissue to relax, reduces stress and anxiety, and if you're deficient (and unless you happen to live near a mineral spring in which you bathe every day you probably are,) it will almost certainly have a positive effect on your sleep cycle.
Most people I know who try it find they experience positive benefits literally from the first time they put some on, and I mean within minutes they feel the stuff going to work. I suppose the effect depends on just how deficient you are to begin with but my own personal experience was rather startling and unexpected. Magnesium deficient bodies just drink the stuff in and respond to it almost immediately.
There is a company that mines a very pure, contaminant-free magnesium chloride crystal-flake from a 250 million year old bed about a mile underground in Germany. They sell magnesium oil but they also sell the raw magnesium crystal-flakes. They suggest you use their magnesium oil for applying to the skin and use the flakes in foot soaks like you would epsom salts (which are another, less bio-available form of magnesium,) but I've found you can get the flakes and dissolve them in purified or distilled water to make your own magnesium oil and it works just fine for only a fraction of the cost of buying prepared magnesium oil. A 6.5 lbs. container of the crystal-flakes is available for about $55 US currency here:
Ancient Minerals | Ultra Pure Magnesium Oil, Magnesium Gel, Magnesium Flakes and with the small amount you will need to mix with water that much will last you for probably a year or more. It's a mineral so it never "goes bad" or loses its shelf life.
If you choose to make your own magnesium oil you might find it difficult to get exact information on the ratio of flakes to water so let me save you a lot of search time and suggest you use 1 tablespoon of the crystal-flakes in 3 oz. of purified water (about 100 ml. for you metric folks). In a small pecentage of people the mineral on their skin causes a little bit of itching or irritation. If you're one of those people then double the amount of water to 6 oz. and 1 tablespoon of crystal-flakes.
It can't hurt, will probably help, and may even solve your sleep problem, so you might want to give it a try.