The WakaTime plugin works for Eric6 and is open-source on GitHub.
Run install.py:
Mac and Linux
curl -fsSL https://raw.githubusercontent.com/wakatime/eric6-wakatime/master/install.py | python
Windows
Download and extract eric6-wakatime-master.zip, then double click install.py.
Re-launch Eric6.
Enter your API key
, then click OK.
Use Eric6 like you normally do and your time will be tracked for you automatically.
Visit https://wakatime.com/dashboard to see your logged time.