It mainly depends on the app you use. If it has strong end-to-encryption, it will be difficult to track you. Besides using a private texting app, you can also subscribe to a VPN to remain completely anonymous.