1.4K members online now
Discuss regaining access to Analytics accounts, restoring accounts, changing user access levels, and navigating the homepage
Guide Me

What is the best way to track both http and https?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭


My company website has been just applied the https. but some pages will keep using http.

The existing Google Analytics is tacking http. I just found that it can't track the https.

I have already added the search console for both http and https, 2 properties.


Just ask in Google Analytics, should I create a new property for https, or just create a new view for https?

1 Expert replyverified_user

What is the best way to track both http and https?

[ Edited ]
Top Contributor
# 2
Top Contributor

Hi :-)

Google analytics is protocol agnostic, it will track https or http.
Tracking/reporting is tied to the tracking id.. not a domain as such.

Search Console report data in GA is not tracked by Google Analytics, it is tracked by Search Console and imported from there into Analytics.
The problem arises in that a GA Property can only be linked to a single website domain added in Search Console.


You could use two properties as to be able to link a different Search Console property to each one,

just need to configure the 2nd tracking code snippet to account for it

by using a named tracker eg


ga('create', 'UA-XXXXX-Z', 'auto', 'clientTracker');
ga('clientTracker.send', 'pageview');

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here