@ridi/event-client
v0.2.20
Published
Ridibooks event tracking client
Downloads
6,899
Keywords
Readme
ridi-event-client
Getting Started
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script src="./dist/umd/bundle.min.js"></script>
<script>
var eventClient = new client({
deviceType: 'pc',
uId: 123456,
debug: true,
autoPageView: true,
trackingId: "GTM-ID",
});
eventClient.setUId(12345678);
eventClient.sendAddPaymentInfo('payment_type', {
value: 1,
currency: 'KRW',
items: [
{item_id: 'item_id', item_name: 'abcd', item_category: 123456, service_type: 'ridibooks'}
]
});
</script>
</body>
</html>
Test
$ npm run test
Publish
$ npm login
$ npm run deploy
$ # or
$ npm run build && npm publish --access public
LICENSE
MIT