How To Change Http To Https In Google Analytics

Google Analytics is a powerful tool that helps businesses track and analyze their website traffic. However, if your website uses HTTP instead of HTTPS, you may be missing out on important data and insights. In this article, we will explain how to change HTTP to HTTPS in Google Analytics.

Why Use HTTPS?

HTTPS is a more secure version of HTTP that uses encryption to protect sensitive information such as passwords and credit card numbers. By using HTTPS, you can ensure that your website visitors’ data is safe from hackers and other malicious actors.

Step 1: Install an SSL Certificate

The first step in changing HTTP to HTTPS in Google Analytics is to install an SSL certificate on your website. An SSL certificate is a digital certificate that verifies the identity of your website and enables HTTPS encryption.

How to Install an SSL Certificate

  • Choose an SSL certificate provider such as GoDaddy or Comodo
  • Purchase an SSL certificate that matches your website’s domain name
  • Follow the instructions provided by your SSL certificate provider to install the certificate on your website

Step 2: Update Your Google Analytics Tracking Code

Once you have installed an SSL certificate on your website, you will need to update your Google Analytics tracking code to use HTTPS instead of HTTP. Here are the steps to do so:

  • Log in to your Google Analytics account and navigate to the property for which you want to change the tracking code
  • Click on “Admin” in the left-hand navigation bar and then select “Tracking Info”
  • Click on “Tracking Code” and look for the section labeled “Google Analytics Tracking Code”
  • Replace the HTTP version of your tracking code with the HTTPS version
  • Save your changes

Step 3: Verify Your Changes

After updating your Google Analytics tracking code to use HTTPS, it’s important to verify that the changes have been made correctly. Here are the steps to do so:

  • Open a web browser and navigate to your website
  • Look for the padlock icon in the address bar to confirm that your website is using HTTPS encryption
  • Navigate to Google Analytics and look at your real-time data to ensure that traffic is being tracked correctly


Changing HTTP to HTTPS in Google Analytics is an important step for any business that wants to protect their website visitors’ data and gain access to more accurate analytics. By following the steps outlined in this article, you can ensure that your website is secure and that your Google Analytics data is accurate.