The battle between Coca-Cola and Pepsi just found some common ground. Fans of both cola brands are quite different in terms of education and political leanings, but both are skewing older, according to new data from ecommerce and consumer analytics provider Connexity.

Coke's largest audience is 35 to 44, while Pepsi's is 65 and over, and both underindexed in the 18- to 24-year-old demographic.

Coke and Pepsi have both expanded their beverage portfolios beyond soda and introduced smaller package sizes to appeal to younger audiences who are drinking less soda. However, both brands need to do a better job of targeting 18 to 24 year olds, said Rochelle Bailis, director of content at Connexity.

"Coke tends to have a younger audience than Pepsi, but they're both failing to reach younger consumers," she said. "Younger consumers are more health-conscious, so both of them are in this arms race to get the attention of millennial consumers. I don't think either of them are doing it perfectly yet."

Check out more of Connexity's data on the demographics of Coke and Pepsi drinkers below:

Pepsi overindexes with Left Out Democrats by 12 percent, while underindexing with Uninvolved Conservatives by 16 percent and Ultra Conservatives by 11 percent. Conversely, Coke overindexes with Mild Republicans by 21 percent and Ultra Conservatives by 10 percent, while underindexing with Conservative Democrats by 11 percent and Left Out Democrats by 10 percent.

Coke drinkers lean more towards having at least a college degree, while Pepsi audiences skew towards having only high school degrees.