Classic Case
  • Website of Tongren Development and Reform Commission
  • Tongren City Science and Technology Innovation Service Platform
  • Tongren Science and Technology Bureau

Baidu push automatic tool Code

Posted: 2018-06-28 11:15 Source: unknown Author: admin Click: Times

Service targets and principles

JS code to link push web pages to a minimum target of serving the entire multi-terminal platform, PC station and mobile station can be used.
Install the code page at any platform (browser, micro-channel, microblogging) is loaded, the page links will be the first time pushed to Baidu, thereby increasing the speed discover new content site.

code show as below:

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

    ------ Divider ----------------------------
    ------ Divider ----------------------------