New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

eleventy-plugin-plausible

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eleventy-plugin-plausible

Add the analytics script tag with a shortcode and remove some of the worry

latest
Source
npmnpm
Version
2.0.0-beta.1
Version published
Maintainers
1
Created
Source

Plausible Analytics Snippet

Add the analytics script tag with a shortcode and remove some of the worry :)

Using this plugin

const pluginPlausible = require('eleventy-plugin-plausible');

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(pluginPlausible, {
    domain: 'mywebsite.com'
  });
}

Notice

This is a pet project of Ginger (ME) and is in no way related to the team at Plausible Analytics. I am lazy and wanted a shortcode to manage the snippet for my different sites, rather than finding where the head is, copy and pasting. This let me put in the shortcode {% plausible %} and then add the plugin with my website and be done with it.

There's an issue with...

Since this is not maintained by Plausible Analytics, I cannot help you with anything related to their product.

This plugin does 1 thing and 1 thing only, put HTML onto a page. Give it the right domain, and there shouldn't be a problem.

If the snippet that Plausible Analytics uses to track users changes, I will update the template string here when notified. Other than that, there is nothing I can do.

Credits

  • Plausible Analytics (seriously check them out)
  • 11ty
  • Stephanie Eckles a.k.a. 5t3ph for the eleventy-plugin-template that this plugin is built on.

Keywords

11ty

FAQs

Package last updated on 08 Nov 2023

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