html Engie ID_PERS查询字符串Grabber

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Engie ID_PERS查询字符串Grabber相关的知识,希望对你有一定的参考价值。

<!-- See lines 11 to 29 for code to add -->

<!-- Begin BlueKai Tag -->
<script type='text/javascript'>
  window.bk_async = function() {
 
    // ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
    bk_allow_multiple_calls = true;
    bk_use_multiple_iframes = true;
 
    // ID_PERS QUERY-STRING GRABBER CODE : START
    var urlP;
    var match,
    pl = /\+/g, // Regex for replacing addition symbol with a space
    search = /([^&=]+)=?([^&]*)/g,
    decode = function(s) {
        return decodeURIComponent(s.replace(pl, " "));
    },
    query = window.location.search.substring(1);

    urlP = {};
    while (match = search.exec(query))
    urlP[decode(match[1]).toLowerCase()] = decode(match[2]);

    if(urlP.id){
  
        // Declares "id_pers"
        bk_addPageCtx('id_pers', urlP.id);
    }   
    // ID_PERS QUERY-STRING GRABBER CODE : END 

    // PHINTS : Declare variables about this page (or user)
    bk_addPageCtx('page_name', 'VALUE OF "page_name"');
    bk_addPageCtx('page_cat1', 'VALUE OF "page_cat1"');
    ///...etc...
 
    // Send Data to BlueKai
    BKTAG.doTag(XXXXX, 4); // XXXXX is the container ID for your site
 
  };
  (function() {
    var scripts = document.getElementsByTagName('script')[0];
    var s = document.createElement('script');
    s.async = true;
    s.src = '//tags.bkrtx.com/js/bk-coretag.js';
    scripts.parentNode.insertBefore(s, scripts);
  }());
 
</script>
<!-- End BlueKai Tag -->

以上是关于html Engie ID_PERS查询字符串Grabber的主要内容,如果未能解决你的问题,请参考以下文章

html Engie:iOS / Android App Pixel

javascript Engie:Allomedia BKUUID Grabber

javascript Engie DGP - Allomedia BKUUID iframe抓取器

弹性搜索查询在regexp输入参数的列表中查找值的精确匹配

Installation Oracle11gR2 RAC---修改在线日志

使用弹性搜索查询查找多个精确值