Political campaigning is fast changing in the digital era. Elections are now being contested with data and algorithms. Parties see it as a great opportunity. Others see it as a threat to democracy. And the changes are now playing out in real time in the United States. Barack Obama was often referred to as the first Internet president, but Donald Trump is fast becoming the king of social media.