Created
January 2, 2017 08:34
-
-
Save blaswan/6821ed697dbedd92e6c81bf6d69a948a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Channel Plugin Scripts --> | |
<script> | |
window.channelPluginSettings = { | |
"plugin_id": "YOUR_PLUGIN_ID" | |
}; | |
<!--{ ? gd_is_login() === true }--> | |
window.channelPluginSettings.user = { | |
"id": "{=gSess.memId}", | |
"name": "{=gSess.memNm}", | |
"mobileNumber": "{=gSess.cellPhone}", | |
"meta": { | |
"구매 수량": "{=gSess.saleCnt}개", | |
"구매 금액": "{=gd_currency_display(gSess.saleAmt)}", | |
"로그인 횟수": "{=gSess.loginCnt}번", | |
"회원 그룹명": "{=gSess.groupNm}", | |
"성인인증 여부": "{=gSess.adultFl}", | |
"일련 번호": "{=gSess.memNo}", | |
"휴면계정 여부": "{=gSess.sleepFl}", | |
"쿠폰 갯수": "{=gd_money_format(myCouponCount)}장", | |
"마일리지": "{=gd_money_format(gMemberInfo.mileage)}{=gd_display_mileage_unit()}", | |
"예치금": "{=gd_money_format(gMemberInfo.deposit)}{=gd_display_deposit('unit')}" | |
} | |
}; | |
<!--{ : }--> | |
<!--{ / }--> | |
(function() { | |
var node = document.createElement('div'); | |
node.id = 'ch-plugin'; | |
document.body.appendChild(node); | |
var async_load = function() { | |
var s = document.createElement('script'); | |
s.type = 'text/javascript'; | |
s.async = true; | |
s.src = '//cdn.channel.io/plugin/ch-plugin-web.js'; | |
s.charset = 'UTF-8'; | |
var x = document.getElementsByTagName('script')[0]; | |
x.parentNode.insertBefore(s, x); | |
}; | |
if (window.attachEvent) { | |
window.attachEvent('onload', async_load); | |
} else { | |
window.addEventListener('load', async_load, false); | |
} | |
})(); | |
</script> | |
<!-- End Channel Plugin --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment