However , the song was less successful in other territories , peaking at number 15 in The Netherlands and number 18 in France and Spain , respectively .
The song peaked at number 2 on the U.S. Billboard Hot 100 , becoming her first Top 5 single ; it also peaked at number 1 in New Zealand , number 2 in the UK and at number 6 and number 7 in Australia and Canada , respectively .