Baidu Indexation Speedup WordPress Plugin

Besides the more commonly seen sitemap-based URL submission method, Baidu has also offered a few alternative ways for URL submission, which makes you able to directly push URLs to Baiduspiders, the official web crawler of Baidu.

You can find more information about these methods here.

One of the methods is based on JavaScript and very friendly to webmasters who want to avoid the trouble of coding themselves.

All you need to do is just copy and paste the JavaScript code snippet below to every web page page of your site:

<script>
  (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
          bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else {
          bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
  })();
</script>

When someone visits a web page with the codes above, either within a desktop browser, a mobile browser or an app such as Weibo and WeChat, the codes will be executed and push the URL of the web page to Baiduspider.

Our WordPress plugin does one simple thing - it adds the JavaScript codes above to the footer section of your entire WordPress site.

Download the plugin >

Warning: due to the fact that Baidu's most servers are based in China, your site's load speed may be slightly affected to visitors based outside China. Be sure to do some load speed tests after installing the codes.

If you have any questions or recommendations, don't hesitate to comment below.

Top