You could create a theme component that inserted whatever is used to do the tracking.
This has been added to core: