Mobile app version of vmapp.org
Login or Join
Alves908

: 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,

@Alves908

Posted in: #GoogleAnalytics

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'?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

das should not happen. Such redirect, like you do, doesn't trigger any Javascript, not any site load, hence your Analytics doesn't recognize any action.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme