Skip to content

Chrome Extension Activation Rate: Install to First Real Use

7 min readModerok team

How to define and measure a Chrome extension activation rate in MV3: picking the activation event, fixing the install denominator, and the window.

Your Chrome extension activation rate is the share of new installs that reach first real use inside a window you choose, and nothing in the Chrome Web Store reports it. The store counts the install and then stops looking: its metrics page states that "The Users stats only captures installations; it doesn't monitor whether users are active or not" (Chrome Web Store metrics). To get an activation rate you have to supply the numerator yourself, with one event fired the first time a person does the thing your extension exists to do, and then be careful about the denominator, which is noisier than it looks.

TL;DR: Activation rate = users who fired one guarded activation event within N days of installing, divided by the installs that happened at least N days ago. Record an install stamp in chrome.storage.local when onInstalled fires with reason install, count activation only for profiles that have that stamp, fire the event from the background service worker, and make sure both halves of the fraction come from the same population.

Why the Chrome Web Store has no activation rate

The store's own Google Analytics integration goes exactly as far as the install and no further. It sends an install event described as "A custom event sent when a user installs your extension", sent only if the user accepts the permission prompt, and the same page says that to track usage inside your extension you need a separate route (Chrome Web Store and Google Analytics). The store side gives you a denominator and no numerator at all.

That asymmetry is why activation rate gets skipped. Installs look fine, uninstalls look survivable, and nobody notices how many new installs never fired a single feature event. What to track in a Chrome extension puts one activation event second in the instrumentation order, ahead of per-feature detail. This post is how to make that one event produce a defensible percentage.

Pick one activation event, and make it prove intent

An activation event should answer: did this person get the value the listing promised, at least once? Four rules keep it honest.

It is user intent, not your own UI. If your onInstalled handler opens onboarding.html, a view of that page is not activation. You caused it. The same goes for a popup opening: an accidental toolbar click is not value delivered.

It is reachable without an account. If activation requires sign-in, you are measuring signup. Keep the two as separate events.

It fires at most once per installed profile. Activation is a state transition, not a counter, so guard it with a stored flag. That is the strongest guarantee available here, and the last section explains where it leaks.

It is one event, named once. Pick the action closest to the promise: a tab summarised, a page cleaned, one block rule applied. Stable snake_case name, flat properties only (string, number or boolean), as the events guide spells out.

Wiring it in MV3

Three constraints shape the code. Event handlers in a service worker "should be at the top level of the script and not be nested inside functions", which "ensures that they are registered synchronously on initial script execution" (service worker events). "Any global variables you set will be lost if the service worker shuts down", and Chrome's advice is to "save values to storage" instead (service worker lifecycle), so both the install stamp and the guard live in chrome.storage.local, which needs "permissions": ["storage"] in the manifest. And two messages handled in a single wake can both read the guard as unset before either write lands, so the read-modify-write has to be serialized.

import { Moderok } from "@moderok/sdk";

Moderok.init({ appKey: "mk_your_app_key" });

const INSTALLED_AT_KEY = "installed_at";
const ACTIVATED_KEY = "activated_v1";

chrome.runtime.onInstalled.addListener((details) => {
  if (details.reason !== "install") return;
  // Only profiles stamped here can ever be counted, which keeps users who
  // predate this release out of the numerator without a version check.
  chrome.storage.local.set({ [INSTALLED_AT_KEY]: Date.now() });
  chrome.tabs.create({ url: "onboarding.html" });
});

let gate = Promise.resolve();

chrome.runtime.onMessage.addListener((message) => {
  if (message?.type === "summary_created") {
    // .catch() keeps one storage failure from poisoning the chain and
    // silently dropping every activation after it.
    gate = gate
      .then(() => recordActivation(message.surface))
      .catch((error) => Moderok.captureError(error));
  }
});

async function recordActivation(surface) {
  const stored = await chrome.storage.local.get([INSTALLED_AT_KEY, ACTIVATED_KEY]);
  if (!stored[INSTALLED_AT_KEY]) return;
  if (stored[ACTIVATED_KEY]) return;

  // Guard first: if the wake dies during this write you lose one activation.
  // Tracking first would re-fire it on every wake until a write lands.
  await chrome.storage.local.set({ [ACTIVATED_KEY]: true });
  Moderok.track("activated", {
    surface: typeof surface === "string" ? surface : "unknown",
    days_since_install: Math.floor((Date.now() - stored[INSTALLED_AT_KEY]) / 86400000),
  });
}

The popup or content script that sees the user finish the action sends { type: "summary_created", surface: "popup" } over chrome.runtime.sendMessage, and the background worker owns the stamp, the guard and the track() call. chrome.storage.local is readable from every extension context, so a guard checked in two places is two unsynchronised readers of one key. The gate chain is a global, so it serializes only within one wake, which is where duplicate messages collide. The days_since_install property is what lets you cohort later without joining anything.

Fixing the denominator

Filter the reason. chrome.runtime.onInstalled is "Fired when the extension is first installed, when the extension is updated to a new version, and when Chrome is updated to a new version", with reason values install, update, chrome_update and shared_module_update (chrome.runtime). Only install can be a new user, so an unfiltered count climbs every time Chrome updates itself.

Use installs, not first-opens, for this fraction. If the analytics SDK is new to your extension too, every existing user gets a fresh anonymous id on the first run of that release and, as Moderok's docs put it, they "appear as new installs in that week" (retention). Those people have no install stamp, so they cannot enter the numerator. Pair the numerator with __install events dated after your release instead, and discard any window that overlaps the release itself.

Do not assume both halves are filtered alike. Managed ChromeOS devices in ephemeral mode wipe the profile at logout, so one student can "generate dozens of __install events over a single school term" (why install counts diverge). Moderok's Trends Installs metric strips that class of phantom; the docs describe the filter over install-side metrics and do not extend it to custom event counts, so a raw activated count and the Installs chart are not necessarily the same population. The same page notes the filter "has a 1-day latency on ChromeOS only", so yesterday is not closed on ChromeOS even when it is closed everywhere else.

The window does the real work

Divide today's activations by today's installs and you get a number that moves when install volume moves, which is not what you want to know. Instead fix a window per cohort, the way day-7 and day-30 retention fixes one, and let it close before you read it:

activation rate (7d) = users whose `activated` event carried days_since_install < 7
                     / installs that happened at least 7 days ago

days_since_install counts completed 24-hour periods, so < 7 is the predicate that matches a denominator of installs at least 7 days old; <= 7 would quietly read an eight-day numerator against a seven-day denominator. The two window lengths are not interchangeable. A same-day window suits extensions installed to do one thing immediately: a converter, a downloader, a formatter. A 7-day window suits anything waiting on a trigger the user does not control, such as a price tracker that needs a visit to a product page. Pick one and write it next to the number. The automatic __install and __first_open events Moderok already sends are described in automatic events.

What the number is not

Treat any activation benchmark you find for extensions as unverified until you can see its definition and the data behind it. Yours is comparable only to itself: your rate last month, or installs from one listing variant against another.

It is also not quite one event per person. A reinstall or a wiped profile clears chrome.storage.local, so the stamp and the guard both go, and the same person can be stamped and counted again. The anonymous id may outlive them: the SDK mirrors it to chrome.storage.sync and recovers it when local has none, so with Chrome Sync enabled one id can span wipes that your guard does not. Activations lost to a worker kill or a batch that never left the queue read as failures too, so the rate is a floor. And it can collapse for billing reasons: past an organization's monthly event limit, Moderok accepts only __install, __update and __uninstall, so the denominator keeps filling while your own events are dropped (retention). Check the plan before you blame onboarding.

One event and one closed window will tell you more about your extension's first five minutes than the install chart has in a year. Moderok sends the install and first-open side for you, so activation is the one event you add: see what the dashboard reports or the getting started guide.