How to track Http and Https visits in Google analytics?

by

How to track https visits in analytics?

More and more sites are moving towards https in the past months. Google claimed it can be used as an SEO ranking signal and privacy organizations advice it so you give your visitors more privacy.

http and https

Google Analytics works fine on both HTTP and HTTPS sites. In the basic tracking script you see this line:

(window,document,'script','//www.google-analytics.com/analytics.js','ga');

It’s a protocol independent URL that will fetch the analytics.js file from HTTP or HTTPS based on the site’s protocol where the script is loaded. But Google Analytics offers an extra option to do the tracking in HTTPS also. Take your basic tracking code and add the forceSSL line:

ga('create', 'UA-XXXXX-X');
ga('set', 'anonymizeIp', true);
ga('set', 'forceSSL', true);
ga('send', 'pageview');

If the site redirect/default to the https version of the domain name, then you need to change the website URL in the Property Settings page and the View page from HTTP to https and then adjust the link to webmaster search console so that it is linking to the https version in search console.

You have one site is that correct? It should redirect to https
Change the website URL in the Property Setting and View Setting page
so it is https instead of HTTP – click where it says HTTP, it’s a drop down, change it
by selecting https instead

Google has been encouraging site owners to move from HTTP to https and dangling search engine ranking boost as a perk. As a result, a lot of sites have moved. Most sites have also understandably put in place redirects to ensure users visiting the nonsecure version get redirected to the new https version of the site. So far so good.

 

Analisar e preciso. Sem estudo suas campanhas não vão desempenhar o máximo que ela pode performar. #analytics #googleanalytics #analise

A post shared by Marketing Consukting (@marketingconsultingfcs) on

If you are looking for a trustworthy search engine optimization company to manage your project? Morbitstech is the best solution for your business. We can help you attract the right customers, convert leads and grow your business.

Share

Leave a Reply

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