PHPackages                             automattic/jetpack-premium-analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. automattic/jetpack-premium-analytics

ActiveJetpack-library[Utility &amp; Helpers](/categories/utility)

automattic/jetpack-premium-analytics
====================================

Premium Analytics dashboard for Jetpack sites.

00PHPCI passing

Since May 29Pushed 1w agoCompare

[ Source](https://github.com/Automattic/jetpack-premium-analytics)[ Packagist](https://packagist.org/packages/automattic/jetpack-premium-analytics)[ RSS](/packages/automattic-jetpack-premium-analytics/feed)WikiDiscussions trunk Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Jetpack Premium Analytics
=========================

[](#jetpack-premium-analytics)

A portable analytics dashboard for WordPress sites with Jetpack connection. Renders as a full-page SPA inside wp-admin using route-based code splitting.

How it works
------------

[](#how-it-works)

```
 Analytics::init()
       │
       ▼
  build/build.php          ← auto-generated by @wordpress/build
       │
       ├── registers admin_init interceptor
       │   for ?page=jetpack-premium-analytics
       │
       ▼
  @wordpress/boot          ← full-page HTML shell, sidebar, routing
       │
       ▼
  routes//stage.tsx  ← each route is a lazy-loaded ES module

```

The interceptor takes over the request before WordPress renders the standard admin chrome. Boot provides the SPA shell; routes are discovered at build time from `package.json` metadata.

Requirements
------------

[](#requirements)

- **PHP** &gt;= 7.2
- **Gutenberg plugin** — provides `@wordpress/boot` and `@wordpress/route`as script modules. Required until WordPress 7.0+ ships these natively.

Development
-----------

[](#development)

```
pnpm run build             # one-off build
pnpm run watch             # rebuild on file changes
jetpack build packages/premium-analytics   # via Jetpack CLI
```

### Adding a route

[](#adding-a-route)

1. Create `routes//package.json`:

    ```
    {
      "name": "-route",
      "route": {
        "path": "/",
        "page": "jetpack-premium-analytics"
      }
    }
    ```
2. Create `routes//stage.tsx` exporting `stage()`:

    ```
    export const stage = () => My new page;
    ```
3. Rebuild — routes are auto-discovered from `package.json` metadata.

Known issues
------------

[](#known-issues)

### Boot asset shim (`shims/boot-asset.php`)

[](#boot-asset-shim-shimsboot-assetphp)

`@wordpress/build` 0.10+ stopped bundling `@wordpress/boot` locally (expects Core 7.0+ or Gutenberg), but the generated `page.php`template still looks for `modules/boot/index.min.asset.php` to resolve classic script prerequisites. Without it the page is blank.

The shim provides the dependency list. Remove it when `@wordpress/build`fixes the template or the minimum WordPress version is 7.0+.

### Init module (`packages/init/`)

[](#init-module-packagesinit)

Serves two purposes:

1. Sets the dashboard menu icon via `@wordpress/boot` store
2. Forces `@wordpress/build` to track `@wordpress/boot` as a module dependency — without an init module that imports boot, the build skips it

File structure
--------------

[](#file-structure)

```
premium-analytics/
├── src/
│   └── class-analytics.php    # PHP entry: loads build, registers menu
├── packages/
│   └── init/                  # runs before routes render
├── routes/
│   └── dashboard/             # dashboard route (/)
│       └── stage.tsx
├── shims/
│   └── boot-asset.php         # boot prereqs workaround
├── composer.json              # automattic/jetpack-premium-analytics
├── package.json               # @wordpress/build config
└── build/                     # generated (gitignored)

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance64

Regular maintenance activity

Popularity0

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

---

Top Contributors

[![tbradsha](https://avatars.githubusercontent.com/u/32492176?v=4)](https://github.com/tbradsha "tbradsha (5 commits)")[![anomiex](https://avatars.githubusercontent.com/u/1030580?v=4)](https://github.com/anomiex "anomiex (3 commits)")[![dhasilva](https://avatars.githubusercontent.com/u/8486249?v=4)](https://github.com/dhasilva "dhasilva (3 commits)")[![simison](https://avatars.githubusercontent.com/u/87168?v=4)](https://github.com/simison "simison (2 commits)")[![obenland](https://avatars.githubusercontent.com/u/1398304?v=4)](https://github.com/obenland "obenland (1 commits)")[![retrofox](https://avatars.githubusercontent.com/u/77539?v=4)](https://github.com/retrofox "retrofox (1 commits)")

### Embed Badge

![Health badge](/badges/automattic-jetpack-premium-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/automattic-jetpack-premium-analytics/health.svg)](https://phpackages.com/packages/automattic-jetpack-premium-analytics)
```

###  Alternatives

[zendexperts/ze-theme

ZeTheme is a Zend Framework 2 module that allows you to switch between various themes. The module does not contain any themes, but you can create your own.

2614.3k1](/packages/zendexperts-ze-theme)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
