amplitude / amplitude/Amplitude-Node

Proxy amplitude requests from web js through nodejs

未關閉
#197 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
TypeScript
星號
73
分支
20
PR 合併指標
30 天內沒有已合併 PR

描述

## Summary

In the docs under [Build a proxy solution](https://amplitude.com/docs/analytics/domain-proxy#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!

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。