2019-01-24 15:37:55 +00:00
|
|
|
import amplitude from 'amplitude-js';
|
|
|
|
|
|
|
|
export default {
|
2020-01-23 18:36:31 +00:00
|
|
|
/**
|
|
|
|
* Returns the AmplitudeClient instance.
|
|
|
|
*
|
|
|
|
* @param {Object} options - Optional parameters.
|
|
|
|
* @property {string} options.instanceName - The name of the AmplitudeClient instance.
|
|
|
|
* @returns {AmplitudeClient}
|
|
|
|
*/
|
2019-01-24 15:37:55 +00:00
|
|
|
getInstance(options = {}) {
|
|
|
|
return amplitude.getInstance(options.instanceName);
|
|
|
|
}
|
|
|
|
};
|