The WakaTime plugin works for Eric6 and is open-source on GitHub.
Mac and Linux
curl -fsSL https://raw.githubusercontent.com/wakatime/eric6-wakatime/master/install.py | python
Download and extract eric6-wakatime-master.zip, then double click install.py.
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 coding activity.