cart-analysis.hbs 1.29 KB
<!-- 商品详细信息窗口 -->
<script type="text/javascript">
    (function (d) {
        window.bd_cpro_rtid = "P1fsPWc";
        var s = d.createElement("script");
        s.type = "text/javascript";
        s.async = true;
        s.src = location.protocol + "//cpro.baidu.com/cpro/ui/rt.js";
        var s0 = d.getElementsByTagName("script")[0];
        s0.parentNode.insertBefore(s, s0);
    })(document);
</script>
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
    window.criteo_q = window.criteo_q || [];
    window.criteo_q.push(
        {event: "setAccount", account: 16184},
        {event: "setCustomerId", id: "{{uid}}"},
        {event: "setSiteType", type: "d"},
        {event: "viewBasket", item: [
        {{# cart.criteo}}
            {"id":"{{id}}","quantity":"{{quantity}}","price":"{{price}}"},
        {{/ cart.criteo}}
        ]}
    );
</script>
<!-- 聚效 -->
<script type="text/javascript">
    var _mvq = window._mvq || [];
    window._mvq = _mvq;
    _mvq.push(['$setAccount', 'm-23428-1']);
    _mvq.push(['$setGeneral', 'cartview', '', /*用户名*/ '', '{{uid}}']);
    _mvq.push(['$logConversion']);
    _mvq.push(['$addItem', '', /*商品id*/ '{{cart.ids}}', '', '']);
    _mvq.push(['$logData']);
</script>