The WakaTime plugin for Coda is open-source on GitHub.
Go to the offical plugin page then click Install
If this is your first WakaTime plugin, enter your API key
then click OK.
Use Coda like you normally do and your time will be tracked for you automatically.
Visit https://wakatime.com/ to see your coding activity.