Extension Analytics, Measurement Protocol, and Store Listing Metrics
How to track Chrome extension usage with GA4 Measurement Protocol and interpret Chrome Web Store listing metrics, opt-in analytics, and conversions.
This page summarises Chrome developer documentation on measuring extension usage and store-listing performance. Publishers typically need two kinds of answers: how users interact with the extension after install, and how the listing performs in the Chrome Web Store (discovery, installs, churn). Those paths differ in data source, APIs, and privacy limits.
Extension analytics: what you can measure and where
Section titled “Extension analytics: what you can measure and where”Extension analytics means events and page views from popup, side panel, options pages, and the service worker—not the same dataset as listing metrics in the Developer Dashboard. For the extension itself, current guidance centres on Google Analytics 4 sent via the Google Analytics Measurement Protocol, because Manifest V3 disallows executing remote hosted tracking scripts.
Yes, since extensions are built just like websites, they can use Google Analytics to track usage. However, you must modify the tracking code to pull an HTTPS version of the Google Analytics library.
— Chrome, Frequently asked questions
The older Tutorial: Google analytics (Manifest V2) loaded ga.js from https://ssl.google-analytics.com/ga.js and relaxed content_security_policy in manifest.json. That approach is deprecated: the tutorial warns that Manifest V2 is deprecated and points to Use Google Analytics for Manifest V3.
Packaged apps (not extensions) may use Chrome Platform Analytics (CPA), an app-centric client library described in Analytics:
Chrome Platform Analytics (CPA) is a client library that lets you collect user interactions in Packaged Apps and Extensions, and send them to the Google Analytics Platform.
— Chrome, Analytics
If you are building a platform app rather than an extension, see Analytics instead of the extension Measurement Protocol flow.
Manifest V3: why Measurement Protocol replaces in-page tracking scripts
Section titled “Manifest V3: why Measurement Protocol replaces in-page tracking scripts”Manifest V3 blocks remote hosted code in extensions, so you cannot rely on injecting the standard web gtag/ga.js snippet.
Since Manifest V3, Chrome Extensions are not allowed to execute remote hosted code. This means you have to use the Google Analytics Measurement Protocol for tracking extension events. The Measurement Protocol lets you send events directly to Google Analytics servers with HTTP requests. A benefit of this approach is that it lets you send analytics events from everywhere in your extension, including your service worker.
— Chrome, Use Google Analytics
A working sample is referenced in Use Google Analytics (google-analytics.js on GitHub in that doc); follow that tutorial rather than copying full integration walkthroughs here.
GA4 Measurement Protocol: credentials, client_id, and events
Section titled “GA4 Measurement Protocol: credentials, client_id, and events”To send hits from an extension you need an api_secret, a measurement_id, and a stable client_id per installation.
Web data stream and API secret for a Chrome extension
Section titled “Web data stream and API secret for a Chrome extension”Extensions are tracked as web environments. Use Google Analytics instructs you to create a Web data stream in Google Analytics Admin, using any placeholder Website URL (for example https://extension or the extension’s Chrome Web Store URL), because the extension does not have its own public site URL.
Generate a Measurement Protocol API secret on that stream (Admin → Data collection and modification → Data Streams → your Web stream → Measurement Protocol API secrets). You need Editor or Administrator on the GA4 property; viewer or analyst roles are not enough.
Persist client_id with the storage permission
Section titled “Persist client_id with the storage permission”The client_id should remain constant while the extension stays installed. Store it in browser.storage.local and declare the storage permission in manifest.json, as shown in Use Google Analytics.
Send events with fetch to mp/collect
Section titled “Send events with fetch to mp/collect”Events are POSTed to https://www.google-analytics.com/mp/collect with query parameters measurement_id and api_secret, and a JSON body containing client_id and an events array. A minimal button_clicked example appears in Use Google Analytics.
For Realtime and standard engagement reports, add session_id and engagement_time_msec:
Both session_id and engagement_time_msec are recommended parameters when using the Google Analytics Measurement Protocol as they are required for user activity to display in standard reports like Realtime.
— Chrome, Use Google Analytics
Extensions have no built-in browser session model, so you define sessions yourself—for example, expire after 30 minutes without events using browser.storage.session, as in the tutorial’s getOrCreateSessionId() pattern. For engagement_time_msec, prefer elapsed time since the last event; otherwise a default such as 100 ms is acceptable per the doc.
page_view in popup, side panel, and extension pages
Section titled “page_view in popup, side panel, and extension pages”Use the Measurement Protocol page_view event with page_title and page_location (for example on window "load" in popup.js). Import that script before other scripts in the popup HTML, per Use Google Analytics.
Events from the service worker
Section titled “Events from the service worker”The same HTTP approach works in the service worker—for example logging unhandledrejection as a custom event. Do not name events error; that name is reserved in GA4 (see the Measurement Protocol reference linked from the tutorial). Sanitise stack traces so personal data is not sent.
Chrome Web Store listing metrics in the Developer Dashboard
Section titled “Chrome Web Store listing metrics in the Developer Dashboard”Store listing metrics in the Developer Dashboard help you judge how listing and product changes affect conversion, without implementing in-extension tracking.
Interpreting your Chrome Web Store listing metrics can help you evaluate how changes to your extension and store listing can affect conversion rates.
— Chrome, Analyze your store listing metrics
Reports can be exported as CSV. Charts support mouse hover and keyboard navigation (focus the chart, use arrow keys).
| Report | What it measures | Notes from documentation |
|---|---|---|
| Daily installs | Acquisition | New and returning users; breakouts by country, language, OS |
| Daily uninstalls | Churn | Same breakouts; adjust Date range |
| Daily impressions | Discovery | Users who see the item while searching, browsing, collections, or direct visits |
| Weekly users | Retention cohorts | By country, language, OS, item version; installations only—not activity |
The Users stats only captures installations; it doesn’t monitor whether users are active or not.
— Chrome, Analyze your store listing metrics
Use Analyze your store listing metrics for full detail on each chart.
Google Analytics opt-in for the store listing (not in-extension usage)
Section titled “Google Analytics opt-in for the store listing (not in-extension usage)”Listing analytics in GA4 are separate from extension usage analytics. Use your Google Analytics account with the Chrome Web Store describes store-managed GA4 integration.
The Chrome Web Store offers integration with Google Analytics. This allows you to see analytics for your Chrome Web Store listing in addition to the view offered in the Developer Dashboard.
— Chrome, Use your Google Analytics account with the Chrome Web Store
To track usage of your extension (after install), use Use Google Analytics, not the store opt-in alone.
How to opt in and what data you receive
Section titled “How to opt in and what data you receive”On the Store listing tab, under Additional metrics, click Opt in to Google Analytics. After opting in you receive email notification; the store manages the account and exposes non user-level data. Everyone with access to the publisher sees data for that publisher’s items (Analyze your store listing metrics notes the same access rule).
You should see a GA property named with your extension ID at Google Analytics.
Listing page_view URL pattern and store-sent events
Section titled “Listing page_view URL pattern and store-sent events”Each listing visit produces a page_view for a path like:
/webstore/detail/ext/free/EXTENSION_ID/EXTENSION_NAME
The store also sends page_view, session_start, first_visit, user_engagement, and a custom install event when the user completes install after accepting the permission prompt (Use your Google Analytics account with the Chrome Web Store).
UTM parameters and marking install as a conversion
Section titled “UTM parameters and marking install as a conversion”utm_source, utm_medium, and utm_campaign on listing URLs are forwarded to Google Analytics—for example campaign links in Use your Google Analytics account with the Chrome Web Store. Session and first-user attribution fields may stay blank until data finalises:
It can take between 24 and 48 hours for data to be finalized. Before then, you may see events reported with a blank entry for these fields.
— Chrome, Use your Google Analytics account with the Chrome Web Store
Mark install as a conversion under Admin → Conversions → New Conversion Event, enter install, and save (Use your Google Analytics account with the Chrome Web Store).
Common mistakes
Section titled “Common mistakes”- Using MV2
ga.jssnippets on MV3 — remote script load violates Manifest V3; use Measurement Protocol (Use Google Analytics). - Expecting Realtime without
session_id/engagement_time_msec— required for activity in standard reports including Realtime (Use Google Analytics). - Treating weekly Users as active usage — the metric counts installations only (Analyze your store listing metrics).
- Confusing store GA opt-in with in-extension analytics — opt-in tracks the listing; extension behavior needs GA4 in the extension (Use your Google Analytics account with the Chrome Web Store).
- Reserved or sensitive event payloads — avoid reserved names like
error; scrub exception data before send (Use Google Analytics).
How to check this on your site
Section titled “How to check this on your site”-
For Manifest V3 extension events, send a test hit to the debug endpoint
https://www.google-analytics.com/debug/mp/collect(described in Use Google Analytics) and confirm the payload has no validation errors. -
Send a production event to
https://www.google-analytics.com/mp/collectand confirm it appears in the Google Analytics Realtime report (Use Google Analytics). -
In the Chrome Web Store Developer Dashboard, open Analyze your store listing metrics and verify installs, uninstalls, impressions, and weekly users for your chosen date range.
-
If you opted in to store Google Analytics, open the property named with your extension ID and confirm listing
page_viewpaths andinstallevents per Use your Google Analytics account with the Chrome Web Store. -
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.