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?
Best answer by Anonymous
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?