When creating tweets, there is an "enable link tracking" button below the tweet. If enabled, regular links in the tweet are converted into tracking links.
Sonar tracking links should not be pasted into tweets, instead, the regular links should be used with "enable link tracking" on.