Mobile site hit business pass no trajectory solution

Source: Internet
Author: User

Mobile Site Click the Business Advisory button is a lot of times will appear in the background can not count the visitor's browsing trajectory situation, this situation is because some mobile browsers open a new page does not pass the route address information caused by the page. Here's a way to solve this situation:

The code is as follows:

   <script type= "Text/javascript" >function Online () {   //business path     var e = ' wap '; nbsp   if (arguments.length = = 1) {        e = arguments[0];   }    if (typeof Openz Oosurl = = ' undefined ') {        var url = ' http://pht.zoosnet.net/LR/Chatpre.aspx?id=PHT22079011 ';// Edit here for the address of your own Business Access dialog window         URL = url + ' &e= ' + E + ' &p= ' + encodeuricomponent (location.href); &nb Sp       try{            window.open (URL, ' News ' + Math.Round (math.random () * 1 000000);       }catch (ex) {            WINDOW.LOCATION.HREF=URL;&NBSP ;      }        return false;   }else{        Openzoosurl (' Chatwin ', ' &e= '. E);   }}</script>  The default way to open the Business Pass window onclick= "Openzoosurl (' Chatwin ', ' &e=zhuanjia ');"Revision changed to onclick= "Online (' Zhuanjia ');"The method can pass a parameter that marks some of the information that you want to record.

Mobile site hit business pass no trajectory solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.