|
|
@@ -270,6 +270,7 @@ var cfnOpenIpinCertify = function (redirectUrl, custParams) {
|
|
|
* @since : 2021/02/24
|
|
|
* @author : xodud1202
|
|
|
*/
|
|
|
+<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
|
|
|
function cfnAddCart(cartList) {
|
|
|
gagajf.showProgressbar(true);
|
|
|
let jsonData = JSON.stringify(cartList);
|
|
|
@@ -338,6 +339,31 @@ function cfnAddCart(cartList) {
|
|
|
getCartList(data);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // 크리테오 광고스크립트?
|
|
|
+ if(result.custNo != null && result.custNo > 0) {
|
|
|
+ window.criteo_q = window.criteo_q || [];
|
|
|
+ let deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
|
|
|
+ // 장바구니에 추가 된 각 상품에 대한 새 객체 추가
|
|
|
+ window.criteo_q.push(
|
|
|
+ { event: "setAccount", account: 6762}, // 이 라인은 업데이트하면 안됩니다
|
|
|
+ { event: "setEmail", email: criteoEmail }, // 유저가 로그인이 안되 있는 경우 빈 문자열을 전달
|
|
|
+ { event: "setSiteType", type: deviceType},
|
|
|
+ { event: "viewBasket", item: [{id: cartList[0].goodsCd, price:result.price, quantity: cartList[0].goodsQty }]}
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ // 페이스북 픽셀 (장바구니 담기)
|
|
|
+ fbq('track', 'AddToCart',{
|
|
|
+ value: result.price,
|
|
|
+ currency: 'KRW',
|
|
|
+ contents: [{
|
|
|
+ id: cartList[0].goodsCd,
|
|
|
+ name: result.goodsNm,
|
|
|
+ quantity: cartList[0].goodsQty
|
|
|
+ }],
|
|
|
+ }
|
|
|
+ );
|
|
|
} else if (result.cartGb == "O"){
|
|
|
// 신규 고객 판매 상품 체크
|
|
|
if(result.newCustCanYn == "N") {
|