问题原文
原帖链接 · Learning · CC BY-SA 4.0
I was checking Google Search Console and noticed that there is massive drop in Google impressions since July, not sure what could be the reason.
I remember that I integrated a cookiebot.com script for GDPR compliance, and I'm not sure if that had done anything to it. On the other hand, I cross checked website traffic which seems to be fine as I don't see any drop in traffic, it is just the Google impressions which has dropped suddenly.
I am not a geek in this fields and don't know where to start digging for this drop. Does blocking cookies have anything to do with it? I find it hard to relate as there is no drop in traffic.
One important thing I would like to mention is that we moved from HTTP to HTTPS. Could that be the reason, and how can this be fixed?
已采纳解答
原帖链接 · alo Malbarez · CC BY-SA 4.0
When moving from http to https you will see http drop and https rise until all the 301 and 410 are integrated into https (google webmaster tools treats each protocol as different sites)
As how to proceed, in my experience you just add the https version as a new property, set up the redirects in your server: use 302 (found) until you are sure the urls are right then change to 301 (moved permanently).
Replace all javascript and css calls to be protocol agnostic:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
becomes
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Fine tune the redirection rules to avoid multiple redirections (for a couple months you will have one extra) ie:
from http to https and then to https with www.
for http://yourdomain.com it could be two redirects :
httptohttps<- first redirecthttpswithoutwww.tohttps://www.yourdomain.com<- second redirect
that could be just one redirect tweaking the rules:
httpwith and withoutwww.send them tohttps://www.yourdomain.com<- one redirecthttpswithoutwww.send them tohttps://www.yourdomain.com<- one redirect
To "speed up" the transition and cleanup the index it's advisable to submit a sitemap and if it's not already there add it to the end of robots.txt too something like:
User-agent: *
Disallow: /demos/
Sitemap: https://www.yourdomain.com/sitemap_index.xml
Once sitemap is processed and robots.txt checked do a fetch as google
Depending on your domain as google sees it, this transition time could last between 1 and 5 weeks, and after 4 to 6 months all should be normal again in the https property (http will still get residual hits)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
