Solved

Electron app Amplitude implementation

  • 27 June 2021
  • 2 replies
  • 596 views

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!

icon

Best answer by ning.chang 28 June 2021, 06:03

View original

2 replies

Userlevel 4
Badge +7

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

 

Userlevel 6
Badge +8

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