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

Proxy amplitude requests from web js through nodejs #197

Open
arthabus opened this issue Sep 21, 2024 · 0 comments
Open

Proxy amplitude requests from web js through nodejs #197

arthabus opened this issue Sep 21, 2024 · 0 comments
Labels
question Further information is requested

Comments

@arthabus
Copy link

Summary

In the docs under Build a proxy solution it says:

...If you already have a Node API server, you could consider using the Node SDK to pass events from your own endpoint to the main Amplitude event servers.

Can you give a quick example? Which apmplitude api to call in node and how/which parameters to pass?

On the web client I'm planning to do something like this:

amplitude.getInstance().init('default', undefined, {
  apiEndpoint: 'https://my-custom-domain.com/api/logging/amplitude',
})

Your input is very much appreciated!

@arthabus arthabus added the question Further information is requested label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant