Investment in online pays off