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-js there is no way to pass the insert_id parameter #82

Open
dulikmixail opened this issue Feb 26, 2021 · 4 comments
Open

amplitude-js there is no way to pass the insert_id parameter #82

dulikmixail opened this issue Feb 26, 2021 · 4 comments

Comments

@dulikmixail
Copy link

I use "amplitude-js": "^7.4.3". Using this version, I found that it is not possible to pass the "insert_id" parameter, but it is described in the HTTP API V2 and you recommend passing it!! How to pass this parameter?

@kelvin-lu
Copy link
Contributor

To be clear this is an issue filed for the Browser-based Javascript SDK and not the server-side Node SDK?

We didn't have optioning on that SDK for insert ID - instead, we will generate a UUID for each logEvent so that it's always attached and has a unique identifier in accordances with the HTTP v2.

@dulikmixail
Copy link
Author

Yes, this is an issue filled for the Browser-based Javascript SDK. Because i want to use "insert_id" parameter so that when the event is re-sent so that it is displayed only once in amplitude per day

@kelvin-lu
Copy link
Contributor

@dulikmixail sorry for the late response here!

When you say "event is resent", do you mean you are considering when events fail (ex. network offline) and need to be tried again or do you mean that your implementation may call logEvent twice with logically the same event and you want to pass your own insert_id ?

@lynnshaoyu
Copy link

hey kelvin, so are you saying there is no insert_ID property for the javascript SDK? i'm wondering if this is the case as well for the typescript SDK.

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

3 participants