|
|
@@ -525,6 +525,10 @@ var fnGoToOrderDetail = function(param) {
|
|
|
<!-- 2021.05.27 주문완료 로그스크립트 삽입 -->
|
|
|
<script th:inline="javascript">
|
|
|
var orderDetailList = [[${orderDetailList}]]; // 주문상세목록
|
|
|
+var criteoItems = [];
|
|
|
+var fbqItems = [];
|
|
|
+var enlipleItems = [];
|
|
|
+var totalCnt = 0;
|
|
|
|
|
|
window._eglqueue = window._eglqueue || [];
|
|
|
|
|
|
@@ -533,7 +537,18 @@ for (i=0 ; i<orderDetailList.length ; i++) {
|
|
|
var goodsCd = orderDetailList[i].goodsCd;
|
|
|
var currPrice = orderDetailList[i].currPrice;
|
|
|
var ordQty = orderDetailList[i].ordQty;
|
|
|
+
|
|
|
_eglqueue.push(['addVar', 'orderItems', {itemId:goodsCd, price:currPrice, quantity:ordQty}]);
|
|
|
+ criteoItems.push({id: goodsCd, price: currPrice+'', quantity: ordQty+''});
|
|
|
+ fbqItems.push({id: goodsCd, quantity: ordQty+''});
|
|
|
+ enlipleItems.push({productCode: goodsCd, productName: orderDetailList[i].goodsNm, price: orderDetailList[i].listPrice+'', dcPrice: currPrice+'', qty: ordQty+''});
|
|
|
+
|
|
|
+ totalCnt += ordQty;
|
|
|
+
|
|
|
+ // 코마스 광고 스크립트
|
|
|
+ setTimeout( function() {
|
|
|
+ cosemConvert([[${orderInfo.ordNo}]], (currPrice * ordQty), goodsCd, currPrice, currPrice, orderDetailList[i].itemkindNm, orderDetailList[i].brandGroupNm + "_" + orderDetailList[i].goodsNm);
|
|
|
+ }, 10);
|
|
|
}
|
|
|
/* END LOOP */
|
|
|
|
|
|
@@ -581,6 +596,33 @@ x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
|
|
|
);
|
|
|
</script>
|
|
|
<!-- END Criteo 세일즈 태그 -->
|
|
|
+
|
|
|
+<!-- 픽셀 -->
|
|
|
+<script th:inline="javascript">
|
|
|
+ fbq('track', 'Purchase', {
|
|
|
+ value: [[${realOrdSumAmt}]],
|
|
|
+ currency: 'KRW',
|
|
|
+ contents: fbqItems,
|
|
|
+ content_type: 'product'
|
|
|
+ });
|
|
|
+</script>
|
|
|
+
|
|
|
+<!-- Enliple Tracker Start -->
|
|
|
+<script type="text/javascript">
|
|
|
+ var ENP_VAR = { conversion: { product: [] } };
|
|
|
+
|
|
|
+ // 주문한 각 제품들을 배열에 저장
|
|
|
+ ENP_VAR.conversion.product.push(enlipleItems);
|
|
|
+
|
|
|
+ ENP_VAR.conversion.ordCode= [[${orderInfo.ordNo}]];
|
|
|
+ ENP_VAR.conversion.totalPrice = [[${realOrdSumAmt}]];
|
|
|
+ ENP_VAR.conversion.totalQty = totalCnt;
|
|
|
+
|
|
|
+ (function(a,g,e,n,t){a.enp=a.enp||function(){(a.enp.q=a.enp.q||[]).push(arguments)};n=g.createElement(e);n.async=!0;n.defer=!0;n.src="https://cdn.megadata.co.kr/dist/prod/enp_tracker_self_hosted.min.js";t=g.getElementsByTagName(e)[0];t.parentNode.insertBefore(n,t)})(window,document,"script");
|
|
|
+ enp('create', 'conversion', 'is24', { device: 'M' }); // W:웹, M: 모바일, B: 반응형
|
|
|
+ enp('send', 'conversion', 'is24');
|
|
|
+</script>
|
|
|
+<!-- Enliple Tracker End -->
|
|
|
</th:block>
|
|
|
</body>
|
|
|
</html>
|