Skip to main content
Solved

Electron app Amplitude implementation


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!

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.

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

 

View original
Did this topic help you find an answer to your question?

2 replies

ning.chang
Team Member
Forum|alt.badge.img+7
  • Team Member
  • 72 replies
  • Answer
  • June 28, 2021

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

 


belinda.chiu
Team Member
Forum|alt.badge.img+8
  • Amplitude Support
  • 189 replies
  • May 26, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings