It is of course a lot done to timing and luck. However much you tag and custom thumbnail and consider an attractive title - ultimately you have to consider what is the mechanic of going viral....real people's interaction with the media, and more specifically sharing of the media. It is almost impossible for content to go viral without sharing, so try to focus on making your content easy to be shared, and more importantly, giving the urge for people to share it. Good luck!