We value Open Source and make a point to release all our plugins on GitHub under a BSD License.
Download the latest plugin release from GitHub.
Run the install.py script as root.
Edit ~/.wakatime.cfg and add your apikey as follows:
[settings]
api_key = <your-api-key>
Activate the plugin in Gedit from Edit → Preferences → Plugins.
Use Gedit like normal and your stats will automatically show on your WakaTime Dashboard.