v1.0.0 - RC0
Pre-release
Pre-release
This is a work-in-progress release of #34. Docs updates are coming next - so the README is not up-to-date.
For simple device IDs and page tracking the highlights are:
<script src="ravelin-core+track+promise.min.js"></script>
<script>var r = new Ravelin({key: "publishable_key_..."});</script>
after which you can then read the deviceId from the ravelinDeviceId
cookie (asynchronously written) or r.core.id()
which returns a Promise. Be sure to send the device: {deviceId: ...}
with the order in the back-end request.