$ pip install wakatime
$ npm install --global wakatime-zprezto
Make sure your API key is in your ~/.wakatime.cfg file.
Then go into your .zpreztorc file and add the module to your Prezto modules
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
...
'wakatime'