Skip to content

sanity-analytics-dashboard-widgets 0.1.1

Install from the command line:
Learn more about npm packages
$ npm install @wrux/sanity-analytics-dashboard-widgets@0.1.1
Install via package.json:
"@wrux/sanity-analytics-dashboard-widgets": "0.1.1"

About this version

Sanity Studio v3 analytics dashboard widgets

Dashboard widgets for the Sanity Content Studio which embeds various analytics dashboards.

Supported:

Install

npm install --save @wrux/sanity-analytics-dashboard-widgets

Ensure that you have followed install and usage instructions for @sanity/dashboard.

Usage

Add an analaytics dashboard as a widget to @sanity/dashboard plugin in sanity.config.ts (or .js):

import { dashboardTool } from '@sanity/dashboard';
import { plausibleWidget } from '@wrux/sanity-analytics-dashboard-widgets';

export default defineConfig({
  // ...
  plugins: [
    dashboardTool({
      widgets: [
        plausibleWidget({
          auth: 'some-string',
          domain: 'some-domain.com',
        }),
      ],
    }),
  ],
});

Options

Plausible

// List args for plausibleWidget

Fathom

// List args for fathomWidget

License

MIT-licensed. See LICENSE.

Details


Assets

  • sanity-analytics-dashboard-widgets-0.1.1.tgz

Download activity

  • Total downloads 39
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all