Piwik tracking code change ip to domainname

i’ve installed piwik on my server few months ago an tracking code is:

now i want to change that public ip to a domain name because in our Internal dns server i added that ip for a domain name.
now how can i change that code i mean i just should change that ip to domain name in my pages code or should i change it anywhere else?

You will need to add the domain to trusted_hosts[] in /piwik/config/config.ini.php file and you can start using the domain name for tracking.