大网数据广告活动
网站运营与故障问答

Massive drop in Google impressions for last two months after cookie script was added for GDPR

· 52CE 我爱测

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…

问题原文

原帖链接 · 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 :

  • http to https <- first redirect
  • https without www. to https://www.yourdomain.com <- second redirect

that could be just one redirect tweaking the rules:

  • http with and without www. send them to https://www.yourdomain.com <- one redirect
  • https without www. send them to https://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)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-08-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。