Authored by 周少峰

add pinzhong analysis, update version

... ... @@ -305,7 +305,7 @@ exports.detail = (req, res, next) => {
commentFirstPageUrl: '?pageSize=10'
}
}, {
title: `${info.title} | YOHO!BUY有货 | 年轻人潮流购物中心,中国潮流购物风向标,官方授权正品保证`,
title: `${info.title} | YOHO!BUY有货`,
keywords: info.tag.length > 0 ? `${info.tag}` :
['Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,',
'黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,',
... ...
... ... @@ -11,7 +11,7 @@ const isTest = process.env.NODE_ENV === 'test';
module.exports = {
app: 'web',
appVersion: '5.7.0', // 调用api的版本
appVersion: '5.7.1', // 调用api的版本
port: 6002,
siteUrl: 'http://www.yohobuy.com',
cookieDomain: '.yohobuy.com',
... ...
... ... @@ -60,3 +60,19 @@ var _gaq = _gaq || [];
s.parentNode.insertBefore(bp, s);
})();
</script>
<!-- 品众统计 -->
<script type='text/javascript'>
var _fxcmd=_fxcmd||[];
_fxcmd.sid='bb3b16fa1106a6ab8619da0095755f32';
_fxcmd.trackAll=false;
// 参数配置(可选)...
// 追踪配置(可选)...
(function () {
var _pzfx=document['createElement']('script');
_pzfx.type='text/javascript';
_pzfx.async=true;
_pzfx.src='//static.w3t.cn/fx/1/1/fx.js';
var sc=document.getElementsByTagName('script')[0];
sc.parentNode.insertBefore(_pzfx,sc);
})();
</script>
... ...
{
"name": "yohobuy-node",
"version": "5.7.0",
"version": "5.7.1",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -747,7 +747,7 @@ $('#order-submit').click(function() {
url: '/cart/ensure/submit',
data: order
}).then(function(data) {
var rdata, subTip,
var rdata, subTip, newUser,
tongJi = {
num: 0,
skn: [],
... ... @@ -815,6 +815,19 @@ $('#order-submit').click(function() {
}).track('MC.ROh.yqkx8jgGASmo3McexF7XE0');
}
// 品众统计
if (window._fxcmd) {
newUser = window.cookie('__NEW_USER') || 0;
window._fxcmd.push(['trackOrder', {
oid: rdata.order_code,
otp: rdata.order_amount,
u_info: window.getUid(),
u_type: newUser
}, []]);
window.setCookie('__NEW_USER', 0);
}
location.href = rdata.url;
}
} else if (data.message) {
... ... @@ -829,9 +842,8 @@ multiPackage.init();
coupon.init();
yohoCoin.init();
// 删除品众统计 2017-4-24
// 获取用户是否新客(品众统计)写cookie
// $.ajax({type: 'GET', url: '/home/newuser'});
$.ajax({type: 'GET', url: '/home/newuser'});
// 订单确认页默认埋点
yas.givePoint('YB_SC_ORDER_ENSURE');
... ...