As entertainment and shopping moves online, states and cities are looking to the digital world for potential revenue