After migrating To SSL: Set Up Google Analytics and Google Search Console/Webmaster Tools

Source: Really Simply SSL

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

Smiley face

First navigate to https://www.google.com/webmasters/tools/home.

In Google Search Console (Google Webmaster Tools), you should add the https variant, and select a preferred domain. This can be both the www or non-www variant of your domain. You should add all variants of your domain:

  • http://domain.com
  • http://www.domain.com
  • https://domain.com
  • https://www.domain.com

   

If you don’t know how to add a new property, follow these instructions from Google.

As you will have for properties for each site, you can also create a set, in which you bundle all properties for one domain. To create a set, click the “create a set” button to the right of the red “create property” button.

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:

  1. On the Search Console Home page, click the site you want.
  2. Click the gear icon, and then click Site Settings.
  3. In the Preferred domain section, select the option you want.

Google Analytics

First, navigate to http://analytics.google.com

After you move to SSL, you should change your domain in Google Analytics to https. This way, GA starts registering your hits again. I would recommend using the .htaccess redirect if you’re on apache.  GA might not register hits if the site is not redirecting properly to https.

The language on the screenshots is not English, but it will look the same in English.

To update the GA settings, in Google Analytics, first go to your website dashboard, and click the cogwheel at the bottom, “Admin” .

 

Now there are two urls that need to be changed. For tracking, only the url under “view settings” appears to be important, but I would change both anyway. So first, click “property settings”, and change the default url. Then click “view settings” and change the website url.

 

Now, change the protocol to https for both url’s

 

That’s it! Your site is now correctly configured for SSL.

If Really Simple SSL fixed your issues and/or saved you time, you might consider buying the premium plugin to support the continuing development of the plugin. You’ll get some great additional features, like HTTP strict Transport Security, the SSL certificate expiration warning and premium support.

Additional settings

If you experience any issues with your sitemap after migrating to SSL while using the Yoast SEO plugin, you can disable and enable the Yoast plugin once. That will change all links in the sitemap to https://.

Leave a Reply

Your email address will not be published. Required fields are marked *

telecel lead