In Page Analytics: Domain Name Change

Hi everyone,
We originally set up our Analytics tracking a few years ago for our website using the domain “olddomain.com”, however after switching over to our “newdomain.com” we are seeing an issue with In Page Analytics:

Does anybody know if we will need to set up a new domain name in Analytics in order to resolve this? And if so how can we ensure that we don’t lose any of the existing Anaytics statistics and tracking for review purposes? Our existing login into Analytics is “admin@olddomain.com” too.
Thanks,

Remove the previous code from the website, generate a new one and put it on your website.