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