@ridi/event-client
TypeScript icon, indicating that this package has built-in type declarations

0.2.20 • Public • Published

ridi-event-client

npm

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.20
    399
    • latest

Version History

Package Sidebar

Install

npm i @ridi/event-client

Weekly Downloads

1,202

Version

0.2.20

License

MIT

Unpacked Size

295 kB

Total Files

32

Last publish

Collaborators

  • hw.choi
  • simulacre7
  • ys.yoon
  • lowfront
  • mando212
  • khinenw
  • davin.ahn
  • ridicorp
  • m0ai
  • ridi-junhee