Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplitude adapter: identify also logs event #278

Closed
KeithKosh opened this issue May 4, 2021 · 1 comment
Closed

Amplitude adapter: identify also logs event #278

KeithKosh opened this issue May 4, 2021 · 1 comment

Comments

@KeithKosh
Copy link

In the identify() function in the Amplitude metrics-adapter, I noticed that there is a double-call of sorts being made:

https://github.com/adopted-ember-addons/ember-metrics/blob/master/addon/metrics-adapters/amplitude.js#L76-L77

Is there a reason that both identify() and logEvent() are being called in this function? According to Amplitude documentation, identify does not count against monthly event count limits:

https://developers.amplitude.com/docs/identify-api#faq---identify

However, logEvent() does count against limits. In the web app I'm working on, this means an event is being logged every time the app is re-initialized or a user logs in, and we would like to clean up non-essential events to avoid scenarios where we may exceed our monthly event limit.

It would be helpful if the logEvent call was either removed, or able to be optionally not triggered depending on the use case.

Thanks!

@jherdman
Copy link
Contributor

This is a great question, and I don't have a good answer for you. My hunch is that you're correct in that we ought to remove the logEvent — if consumers of this addon want to also log an event after identifying, they can do so themselves. Let's open a PR to deprecate this behaviour, and slate its removal in the forthcoming major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants