New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datocms-plugin-plausible

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datocms-plugin-plausible

Plausible integration for DatoCMS

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
5
Weekly downloads
 
Created
Source

Plausible DatoCMS Plugin

DatoCMS plugin that provides a link to Plausible for the current record on the sidebar

Setup

Adding the plugin from the marketplace

In your DatoCMS project, go to Settings -> Plugins -> Add new (plus sign at the bottom) -> From Marketplace -> Search for Plausible -> Install this plugin.

Adding as a private plugin

In your DatoCMS project, go to Settings -> Plugins -> Add new (plus sign at the bottom) -> Create new plugin -> Enter the following configuration:

Plugin Settings

Then click on Save plugin settings

Plugin parameters

After installing the plugin, in the new settings form we must enter the parameters for our Plausible project.

  • Plausible Site: The name of our site in plausible,
    ex: mysite.com

Then for each model, we'll have the following fields:

  • [DATOCMS MODEL] URL Pattern: The pattern used to construct the Plausible URL for the specified model,
    ex: ?page=%2f

  • [DATOCMS MODEL] Slug Field: The field of the specified model that will be used as slug,
    ex: First Name

The combination of the 3 parameters will be later used by the plugin to create a link, ex:
https://plausible.io/mysite.com?page=%2fjoakim

Plugin Parameters

Then click on Save Settings

Plugin

After the setup is complete, we can navigate to content and select a record from one our models.
The plugin will show up in the sidebar.

Plugin Link

Development

Clone the repo -> $ yarn install -> $ yarn start -> In your DatoCMS project, settings -> plugins -> Plausible -> Edit private plugin -> Change the Entry Point URL to http://localhost:3000

Keywords

FAQs

Package last updated on 17 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc