How do you deal with pregnancy insomnia?

I am getting, maybe, 2 nights of decent sleep a week if I'm lucky.

Either it takes me hours to fall asleep or I can't get continuous sleep due to pee breaks and/or the dog waking me up.

Most nights I can't fall asleep till 11pm or some nights till 1/130am. Last night I was dead tired but could not fall asleep till almost 1:30am.

It's 1:20p now and I'm struggling to keep my eyes open at work.

Any tips?