Install an Amplitude server SDK
このページはまだあなたの言語に翻訳されていません。 現在取り組んでいますので、後でもう一度確認してください。
For backend engineers5 minBeginner
This quickstart installs an Amplitude SDK on a server so your backend can send events. Pick your language: Node.js or Python. Each language takes three steps: install, initialize, and track your first event.
To send events without an SDK, use the HTTP API Quickstart.
Prerequisites
- An Amplitude project and its API key. Create a free Amplitude account if you need one.
- Access to your server codebase.
Install the SDK
Install
Install the package
bashnpm install @amplitude/analytics-nodeInitialize
Initialize Amplitude at startup
javascriptimport { init, track } from "@amplitude/analytics-node"; init("AMPLITUDE_API_KEY");Track
Track your first event
javascripttrack("Button Clicked", undefined, { user_id: "user@example.com" });
For full configuration options, refer to Node.js SDK configuration options.
Confirm that events arrive
After you track your first event, open the Amplitude Debugger to confirm that it reaches your project.
これは役に立ちましたか?
For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.