merge master into develop - CscListRForm.jsp FAQ 아코디언 버그 수정

This commit is contained in:
jilee4unity
2026-05-28 23:34:06 +09:00
7250 changed files with 570509 additions and 25 deletions

View File

@@ -0,0 +1,121 @@
//구글애즈
function googleAds(list, url){
if(fn_is_empty(list)){
return false;
}
/*
* * 구글 애즈 공통 헤더
<!-- Google tag (gtag.js) -->
* */
const commonHeaderAt = adScriptCommonHeaderAt(list);
if(commonHeaderAt){
const adMediaId = commonHeaderAt.adMediaId;
let gtagScript = document.createElement('script');
gtagScript.async = true;
gtagScript.src = 'https://www.googletagmanager.com/gtag/js?id=' + adMediaId;
document.head.appendChild(gtagScript);
// gtag 설정
let configScript = document.createElement('script');
configScript.innerHTML = `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '` + adMediaId + `');
`;
document.head.appendChild(configScript);
}
//상품 상세 페이지
if(url.includes(selectGoodsDtl)){
//# 상품상세페이지에서 장바구니 담기 버튼을 클릭할 때 아래 코드 실행. addEventListner 등 사용
const addCartEventAt = adScriptAddCartEventAt(list);
if(addCartEventAt){
addCartStorage(addCartEventAt)
}
//# 네이버페이 버튼 클릭 시 아래 코드 실행.
const nPayEventAt = adScriptNpayEventAt(list)
if(nPayEventAt){
addNpayStorage(nPayEventAt)
}
}//상품 상세 END
//주문 완료 페이지
if(url.includes(selectOrdrCompt)){
//# 주문완료 페이지가 로드되면 아래 코드 실행.
const PurchsCompleteFormAt = adScriptPurchsCompleteFormAt(list);
if(PurchsCompleteFormAt){
let finalOrderNo = 0;
let price = 0;
const adscriptVal = $('#adscript').val()
const decode = decodeURIComponent(atob(adscriptVal).split('').map(function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
const adscriptParse = JSON.parse(decode);
price = parseInt(adscriptParse.total.setleAmt)
finalOrderNo = adscriptParse.order.ordrInnb.toString()
let purchsComplateFormScript = document.createElement('script');
const adMediaId = PurchsCompleteFormAt.adMediaId
const adLbl = PurchsCompleteFormAt.instlPgeLbl
purchsComplateFormScript.innerHTML= `
gtag('event', 'conversion', {
'send_to': '${adMediaId}/${adLbl}',
'value': ${price},
'currency': 'KRW',
'transaction_id':'${finalOrderNo}'
});
`;
document.head.appendChild(purchsComplateFormScript);
}
}//주문 완료 페이지 END
//회원가입 완료 페이지
if(url.includes(selectJoinCompleteR)){
//# 회원가입 완료 페이지 로드되면 아래 코드 실행
const mbrRegstFormAt = adScriptMbrRegstFormAt(list)
if(mbrRegstFormAt){
let joinScript = document.createElement('script');
const adMediaId = mbrRegstFormAt.adMediaId
const adLbl = mbrRegstFormAt.instlPgeLbl
// 회원가입 방법 (예: general, kakao 등)
joinScript.innerHTML = `
gtag('event', 'conversion', {
'send_to': '${adMediaId}/${adLbl}',
'value': 1.0,
'currency': 'KRW'
});
`;
document.head.appendChild(joinScript);
}
}
}//구글애즈END