All events to cloud pub sub

For our analytics solution we want to store all our analytics data in google big query. To achieve this we want to have piwik post messages for all events to google pub sub and have dataflow receive that message and stream the data to big query.

I was looking at the dimension section and was wondering if this is the best direction to solve this problem. How I understand it is that I have to create a seperate dimension for all our dimensions and have them all push a message to pub sub.

Any insight you guys can provide would be helpfull.

This sounds kind of similar to what I’m trying to do, I want to write a plugin that sends analytics data elsewhere when an event comes in (just not to google big query).
Did you have any success with this approach?