Your shows possession (your book). You're is a contraction of 'you are' (you're welcome). If you can replace the word with 'you are' and it still makes sense, use you're.
High-volume grammar query.
More from DoesWhat: free calculators · emoji meanings · quick answers · the DoesWhat blog