: Google Analytics seems to be affected after setting preferred domain I hope you can assist me with this! I've recently changed the preferred domain for my site https://example.com. Unfortunately,
I hope you can assist me with this! I've recently changed the preferred domain for my site example.com. Unfortunately, after doing so, it appears that views/visits are no longer being recorded by Google Analytics. I've edited the URL in GA's Admin settings to indicate that it is now example.com - perhaps it just needs some time to settle in?
Also, I'm not quite sure if I've set up the 301 redirect correctly after setting my preferred domain.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.YourDomain.com$ [NC]
RewriteRule ^(.*)$ YourDomain.com/ [R=301,L]
If I have an HTTPS site, do I need to add the 's' to the sections that contain 'HTTP'?
More posts by @Alves908
1 Comments
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.