You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',
});
The text was updated successfully, but these errors were encountered: