The invasion tracker is not part of the official Toontown client — it is a third-party tool that fans created and distributed through community sites.
Search for a Toontown fan site that hosts it and follow that site's download instructions. A word of caution, though: any unofficial download carries risk, so stick to sources the community has vouched for, keep your antivirus active, and never enter your account password into a third-party program. The in-game Cog invasions are announced on the streets anyway, so the tracker is a convenience rather than a necessity.