Add Google Analytics event tracking

Sends 'heartbeat' event every half an hour