Solved

How to track uninstall event for chrome extension

  • 27 November 2019
  • 1 reply
  • 1012 views

Badge

I've noticed that tracking an uninstall event doesn't work in my browser extension, and found out that it's because by default, the background script gets removed when a user hits "remove" on an extension within chrome. Since this is the case, would anyone be able to suggest effective ways to still output an event to Mixpanel each time the extension is removed from Chrome?


icon

Best answer by Anonymous 30 January 2020, 01:15

hey there @imstillstanding,

My first instinct was to force avoid the removal of the script but it sounds like avoiding the script to not be ejected as soon as a user hits "remove" might not be an option(https://stackoverflow.com/questions/23597323/why-is-the-script-tag-removed-in-javascript-injection-from-a-google-chrome-exten).

From reading this Stack Overflow post, maybe tracking a page to open might be an alternative to capture an event before the user completely removed the extension?

View original

1 reply

Userlevel 1
Badge +2

hey there @imstillstanding,

My first instinct was to force avoid the removal of the script but it sounds like avoiding the script to not be ejected as soon as a user hits "remove" might not be an option(https://stackoverflow.com/questions/23597323/why-is-the-script-tag-removed-in-javascript-injection-from-a-google-chrome-exten).

From reading this Stack Overflow post, maybe tracking a page to open might be an alternative to capture an event before the user completely removed the extension?

Reply