Where is the comma needed in the sentence?

After traveling to Bryce Canyon, Utah, Karen drove to Canyonlands National Park, Utah, where she took pictures of the sandstone formation.

I put in the commas already, I just want to know if this is correct because I'm not sure.

You have put all the commas in the right places. Good for you!

Yes, your placement of commas in the sentence is correct. In this case, commas are used to set off specific nonessential elements, which are phrases or clauses that provide additional information but could be removed without changing the essential meaning of the sentence. In the given sentence, the phrase "Utah" after both "Bryce Canyon" and "Canyonlands National Park" is nonessential information, as it is not essential for understanding the sentence. Consequently, a comma is placed before and after each occurrence of "Utah" to separate it from the rest of the sentence.