When you move your site to ssl, you have to adjust your settings in Google Analytics and Google Webmaster Tools/Search Console accordingly. It’s not much work, but it’s important you fix it. In short, you need to set your primary domain in both Webmaster Tools as in Google analytics to your https domain. I’ll discuss Search Console first, but it really doesn’t matter in which order you do it.
Webmaster Tools / Search Console
In Google Search Console (Google Webmaster Tools), you should add the https variant, and you should set it to your preferred domain as well. You should add all variants of your domain:
If you don’t know how to add a new property, follow these instructions from Google.
The preferred domain should match the one in the general settings of WordPress, the site url. To set as your preferred domain, do the following:
- On the Search Console Home page, click the site you want.
- Click the gear icon, and then click Site Settings.
- In the Preferred domain section, select the option you want.
After you move to SSL, you should change your domain in Google Analytics to https. This way, GA starts registering your hits again. If the redirect wasn’t set in your .htaccess for some reason, try to add it manually. GA might not register hits when the .htaccess redirect was not in place.
To do this, in Google Analytics, go to manage / property settings, and change the protocol to https.
To make finding this setting a bit easier, I’ve added some screenshots to illustrate the needed steps. The language on the screenshots is not English, but it will look the same in English.
Go to “Manage”
Now, change the protocol to https.