How does switching to HTTPS effect Google Analytics?
-
We are looking at making our site HTTPS. We have been using the same Google Analytics account for years and I like having the historical data. All of our pages will be the same, we are just going to redirect from the http to https. Does anything need to be done with Google Analytics? What about other addons such as Optimizely, Crazy Egg, or Share this?
-
I'm not a netsec expert or a technical SEO expert, but I'm running SEO for my company and have been looking into this for a while now. The tips I can give you are: add rel="canonical" tags to all the http:// versions of your site pointing to the https:// version. Once you get an SSL certificate, make sure to claim all 4 variations of your URL (http://, http://www., https://, https://www.) in webmaster tools and designate which is canonical (this will just make sure the Googlebot knows which is canonical, you'll still want to add the tag to your site pages). Finally, make sure that if you do decide to switch to HTTPS:// (which I highly recommend - some people, myself included, now instinctively use https:// over http:// and if someone points a link at https:// when you aren't using it, Chrome will display a yellow warning interstitial and a red X over the https:// in the address bar), get an SHA-2 certificate, rather than SHA-1, as Google is sunsetting it in the next year. To the comment on page load speed - Https:// slows page load down, but generally not by a substantial amount (also, there are plenty of other ways to address page load time that can offset the hit, and if you've already done all that, the page load hit won't hurt you, since you're in better shape than everyone else). Also, while Google's incorporation of https:// as a signal so far has not seemed to impact results much, it's a near certainty that, based on Google's current behavior, it will become less of a signal and more of a necessity, and as more websites adopt it, the less the slight page load hit will matter. Websites are essentially required to adopt it sometime in their lifecycle, as growth makes security much more of a concern.
Further reading on SHA-1 and SHA-2:
https://konklone.com/post/why-google-is-hurrying-the-web-to-kill-sha-1
http://googleonlinesecurity.blogspot.com/2014/09/gradually-sunsetting-sha-1.html
-
We know that:
- Site Speed is a Google ranking signal
- https is now a ranking signal also
2a) https slows down a site - Is it worth going https?
-
Yeah Microsoft, for some reason, likes to make things a little more complex than it needs to be. Here are a couple of links I found that might help:
http://www.iis.net/configreference/system.webserver/httpredirect
http://forums.iis.net/t/1190228.aspx?Specific+url+301+redirection
-
We are using an IIS 7.5 server so I am looking into the best way to do 301 redirects in that. Seems like it would be much easier on a Linux based system.
-
Pay particular attention to load speed. HTTPS encrypts everything and sends it to the client browser where it is then decrypted. If certain pages are loading much slower or if you are using the same images/resources on multiple pages you will want to look at caching various resources.
As Highland mentioned, you'll want to make sure the code is using relative URLs and not hard coded "http" URLs because that will not only impact load time but it may give the visitor an undesirable experience if the site is all messed up. If you are on linux make sure that your .htaccess file does a 301 from http requests to https for obvious reasons.
I hope that helps!
-
I am using HTTP Watch right now and that seems to give a pretty good list of all my HTTP requests. Any other things to look for? I have been researching as much as I can find and want to make sure I get this all right on the first run.
-
The main thing you'll want to make sure is that all your JavaScript libraries and images are loading from HTTPS and not HTTP. If you don't, the browser may not load those resources or may show your site as not secured. The default Analytics code will do this for you, but make sure your other libraries are doing so. A great tool for finding any you've missed is Firebug, a Firefox addon. You open it up, load your website and on the Net tab you can see the URL of every resource loaded and even break them down by type (image, JS, etc).
Analytics itself is not affected by HTTPS. Your metrics will continue to load just fine.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Two of Four Google Analytics Views Not Showing Data
Question for you MOZ friends: We added two new views about a week ago, the same views that we have added for more than 50 Accounts, and they are not showing any data. The views are for 'Filtered Traffic' (no IPs or spam) and 'Organic Only' including only the organic medium. Any ideas why this may not be working? First time we've come across this and couldn't find much help researching it... Thanks as always! street%20ga_zpsorfdnemi.png
Reporting & Analytics | | ReunionMarketing0 -
Google Analytics - Adding a sub-domain
Hi I have a google analytics query.
Reporting & Analytics | | Niki_1
I have a main site with a google analytics tag and I have 2 forms that sit on a subdomain with a different GA code. As I would like to measure end to end tracking, I would like the same GA code on the subdomain. What is the best way for me to implement this? Would I need to make some changes to the GA code that sits on the main site or can I add the the GA code from the main site onto the subdomain? Thanks0 -
Google Analytics - Sessions vs Views?
In Google Analytics under Audience Overview I want to visit total visits during any given period of time but instead it shows me sessions. Am I missing something? How do I switch from sessions to page visits?
Reporting & Analytics | | gohawks77902 -
Google Direct Traffic Reporting for Mobile on Analytics
We noticed a significant drop in our direct traffic in Google Analytics for mobile on July 30th but all our other traffic remains the same. What is the possible cause of this?
Reporting & Analytics | | COEDMediaGroup0 -
Setting Up Google Analytic with Sub Folder Sites
What is the best way of setting up Google Analytic for a website that has many sub folders? The main site is example.com and it has 40 sub folder sites like example.com/uk example.com/France etc etc Would it be advised to track a single domain in Google Analytic then create filters for the sub folder sites. Filters > Include traffic from > Sub directories Also with this method is it possible to view overall incoming website stats for everything? Previous experience would be great with this thanks 🙂
Reporting & Analytics | | daracreative0 -
Cookie tracking in Google Analytics
Hi How do I remove the "/?__utma=...." at the end of my URLs?We have a site http://www.jetonline.co.za/, if you click on one of the menu navigation links i.e. "fashion". A long "/?__utma=...." url appears. I understand this is for tracking as we have separate domains for each page but is there a way to remove this dynamic url and keep it hidden from users?Thanks in advance
Reporting & Analytics | | NeilPursey0 -
Google Analytics Best Practice Set up for Clients
Hi When setting up new Google Analytics accounts for clinets what is the preferred/best practice. At present we have our own company google account and add new clinets this way (to our account) - the disadvantage with this, we can only grant them limited account access otherwise they would be able to view all the accounts we cretaed. Plus we can't link their adwords to the GA account we cretaed them. Is it best practice to set the client up with their own Google Account and then we just link to their account. Advise would be appreciated, thank you.
Reporting & Analytics | | daracreative0 -
How to change a url for google analytics account
We recently changed the url of a client's website. Is there a way to change the url on the ga account instead of creating a new account so that we don't lose comparative data? Thanks! Sorry- I know this is a novice question.
Reporting & Analytics | | marketing12340