What is the best way to track both http and https?
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?
What is the best way to track both http and https?[ Edited ]
July - last edited July
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 ..so 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');
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here