I’m wondering how to implement Amplitude in Electron application (Node.js desktop app).
Are there yet any best practices? Should I implement tracking using Node.js SDK in Electron main process or Javascript SDK in renderer process?
Kind regards!
Best answer by ning.chang
Since Electron seems to be a framework that utilizes JS, HTML, and CSS— you would most likely use our JavaScript SDK to send events into Amplitude along with our APIs for more specific server-side calls as well. For this, you will need to instrument the logic to capture the events yourself, but it should be compatible so long as it is formatted correctly.
Since Electron seems to be a framework that utilizes JS, HTML, and CSS— you would most likely use our JavaScript SDK to send events into Amplitude along with our APIs for more specific server-side calls as well. For this, you will need to instrument the logic to capture the events yourself, but it should be compatible so long as it is formatted correctly.
Adding onto Ning’s comment, I did find a really old simple demo app that an Engineer built a few years ago based off of Electron’s quick start guide: https://github.com/amplitude/electron-quick-start. Perhaps this would help as well.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.