But How?

With the Universal Analytics Measurement Protocol, some Arduino Boards or Raspberry Pi's and a couple wires and sensors.

No programming or engineering experience necessary.