Change Domain URL in Google Analytics

Is it possible to change the website URL in Google Analytics to a new domain and keep the old statistics. I tried to change it using the "Change" link below the "Check Status" on the profile settings page, it changed on the settings page, but it still displays with the old domain to the left of the UA identifier on the home page.

+3
source share
3 answers

Google Analytics is not a domain, so you just need to use the existing UA identifier in your new domain and collect data.

I don’t see a way to edit the "Basic Website Profile Information", but theoretically this is not necessary.

+1
0

If you use the "Tracking Information → Subdomains" function , you must replace the new tracking code.

this line of code will be changed if you change the site domain.

_gaq.push(['_setDomainName', 'yourdomain.net']);

====>

_gaq.push(['_setDomainName', 'yourdomain2.com']);
0
source

Source: https://habr.com/ru/post/1765898/


All Articles