Skip to content

Instantly share code, notes, and snippets.

@blaswan
Last active May 29, 2017 04:11
Show Gist options
  • Save blaswan/35c625d75ec508823658ab100c79d03e to your computer and use it in GitHub Desktop.
Save blaswan/35c625d75ec508823658ab100c79d03e to your computer and use it in GitHub Desktop.
<!-- Channel Plugin Scripts -->
<script>
window.channelPluginSettings = {
"plugin_id": "YOUR_PLUGIN_ID"
};
<!--/if_login/-->
window.channelPluginSettings.user = {
"id": "<!--/user_id/-->",
"name": "<!--/user_name/-->",
"meta": {
"총 주문 금액": "<!--/number/order_total_price/-->원",
"적립금": "<!--/number/user_reserve/-->원",
"예치금": "<!--/number/user_deposit/-->원",
"포인트": "<!--/number/usable_point/-->원"
}
};
<!--/else/-->
<!--/end_if/-->
(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