@convivainc/conviva-js-replay
v1.0.0
Published
Conviva Replay library
Readme
Conviva Replay
A standalone replay module for Conviva analytics that works with both npm and script tags.
Installation
NPM
npm install @convivainc/conviva-js-replayScript Tag
<script src="https://unpkg.com/@convivainc/conviva-replay/dist/conviva-replay.umd.min.js"></script>Usage
NPM/ES Modules
Simple Usage (Recommended)
import { init } from '@convivainc/conviva-js-replay';
// Just provide your customer key - that's it!
init('your-customer-key');Script Tag
Simple Usage (Recommended)
<script src="https://unpkg.com/@convivainc/conviva-replay/dist/conviva-replay.umd.min.js"></script>
<script>
// Just provide your customer key - that's it!
ConvivaReplay.init('your-customer-key');
</script>API Reference
Functions
init(customerKey)
Recommended method - Simple initialization with just a customer key.
Parameters:
customerKey(string): Your Conviva customer key
Example:
// Simple usage
init('your-customer-key');