For months, police trying to solve a Long Island robbery spree had little more to go on than grainy surveillance footage of a man in a hoodie and black ski mask holding up one gas station or convenience store after another.

That was until the gunman made off with a stack of bills that investigators had secretly embedded with a GPS tracking device.