Hi everyone!
In my Angular(version 16) project I am using amplidu js library("amplitude-js": "^8.21.9"). At this moment I Can not create two amplitude instance with different apiKeys. I have console error createInstance() method does not exists. How I can create two different amplitude instance in my angular project?
Hi everyone! In my Angular(version 16) project I am using amplidu js library("amplitude-js": "^8.21.9"). At this moment I Can not create two amplitude instance with different apiKeys. I have console error createInstance() method does not exists. How I can create two different amplitude instance in my angular project?
const defaultInstance = amplitude.createInstance(); defaultInstance.init('API_KEY_DEFAULT');
const envInstance = amplitude.createInstance(); envInstance.init(environment.amplitudeAffiliateApiKey, { instanceName: 'env', });