
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@whitespace/gatsby-plugin-matomo
Advanced tools
Integrates your site with Matomo.
yarn add @whitespace/gatsby-plugin-matomo
// gatsby-config.js
plugins: [
{
resolve: "gatsby-plugin-matomo",
options: {
mtmHost: "YOUR_SELF_HOSTED_ORIGIN",
mtmContainerId: "YOUR_MATOMO_CONTAINER_ID",
includeInDevelopment: false,
routeChangeEventName: "gatsby-route-change", // Set this `false` to disable events
trackPageViews: false, // Change to `true` to track page views
requireCookieConsent: false, // Change to true to require cookie consent. See below how to handle consent.
},
},
];
If you are using @whitespace/gatsby-plugin-cookie-consent it’s recommended to whitelist the container url and hook into the store to check if consent has been given:
gatsby-browser.js:// gatsby-browser.js
import MatomoCookieHandler from "./src/components/MatomoCookieHandler";
export function wrapPageElement({ element }) {
return (
<>
<MatomoCookieHandler />
{element}
</>
);
}
src/components/MatomoCookieHandler.js:// src/components/MatomoCookieHandler.js
import { useStore } from "@whitespace/gatsby-plugin-cookie-consent/src/hooks/store";
import React, { useEffect } from "react";
MatomoCookieHandler.propTypes = {};
/**
* Pushes "setCookieConsentGiven" to Matomo if/when cookies are accepted
*/
export default function MatomoCookieHandler() {
let [store] = useStore();
let cookiesAreAccepted = store.answer === "accept";
useEffect(() => {
if (cookiesAreAccepted && typeof window !== "undefined") {
window._paq.push(["setCookieConsentGiven"]);
}
}, [cookiesAreAccepted]);
return null;
}
FAQs
Whitespace’s basic Gatsby plugin for Matomo
The npm package @whitespace/gatsby-plugin-matomo receives a total of 48 weekly downloads. As such, @whitespace/gatsby-plugin-matomo popularity was classified as not popular.
We found that @whitespace/gatsby-plugin-matomo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.