This seems to work pretty well for me too, with a slight variation. For example, I wake up a few times on my own throughout the night, but if you don’t then trying an alarm clock at various intervals should do the trick.
Another trick that may help is to lie completely still right after you wake up and think back to what you were just dreaming about. It does take some practice, but in my experience it’s definitely worth it . You may also want to check out the dream recall tutorial for some more ideas. Good luck!