I think your use case is best suited towards http://Keen.io
They're goal is pretty much managed analytics infrastructure for other companies. So, when you want to provide an analytics dashboard within your product, you offload the heavy lifting to them.
They have a free tier and I can tell you that their pricing is good value. Once you pass the 1B events per month mark, there might be an argument to bring internally....
I'm not connected to Keen.io... I'm actually the cofounder of another analytics company (Trakio) but we're a different use case.
check out http://keen.io/, if you google there is solutions for getting Google Analytics data in there as well as IoT event data. They injest and store the data, and have tools for querying. I guess if you wanted to roll your own you could look at logstash / elasticsearch