Question: are gotham and titans in the same universe?
Answer: No; Flash, Titans and Arrow are connected; Smallville is a maybe - it is connected to the Arrow maybe; Constantine, Gotham and iZombie are not connected.