Skip to main content

Greetings,

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!

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.

Amplitude is an event-driven platform that allows you to send events from many different methods. I would suggest for you to review what works best for you here: https://help.amplitude.com/hc/en-us/sections/360011006411-Getting-started-with-instrumentation

 


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. 


Reply