Obama took 47 percent support in the poll, while Romney took 40. That’s in line with the Real Clear Politics average of polls, which shows Obama with an eight-point lead in the Keystone State.

Pennsylvania is one of 12 key swing states that Obama won in 2008 that will be critical in determining the outcome of the 2012 election. Pennsylvania’s 20 electoral votes are the third most at stake among swing states, behind only Florida and Ohio.

Obama won Pennsylvania by 11 percent over Sen. John McCainJohn Sidney McCainMulvaney aims to cement CFPB legacy by ensuring successor's confirmation Trump mocks McCain at Nevada rally Don’t disrespect McCain by torpedoing his clean National Defense Authorization Act MORE (R-Ariz.) in 2008.

The poll of 1,227 likely voters was conducted between July 9 and July 10 and has a 2.8 percent margin of error.