Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
astro-matomo
Advanced tools
pnpm add astro-matomo
npm install astro-matomo
yarn add astro-matomo
Options | Type | Description |
---|---|---|
enabled | boolean | Controls if the matomo script should be loaded |
host | string | Url to your matomo installation |
siteId | number | Matomo site id. |
heartBeatTimer? | number | If set the heart beat timer will be enabled |
disableCookies? | boolean | If set cookies will be disabled |
preconnect? | boolean | Will create a preconnect link pointing to the matomo host |
setCookieDomain? | string | Share the tracking cookie across multiple domains |
trackerUrl? | string | Defaults to matomo.php |
srcUrl? | string | Defaults to matomo.js |
debug? | boolean | Activate debug mode |
// astro.config.mjs
import { defineConfig } from 'astro/config';
import matomo from 'astro-matomo';
// https://astro.build/config
export default defineConfig({
site: "https://example.lol",
integrations: [
matomo({
enabled: import.meta.env.PROD, // Only load in production
host: "https://analytics.example.lol/",
setCookieDomain: "*.example.lol",
trackerUrl: "js/", // defaults to matomo.php
srcUrl: "js/", // defaults to matomo.js
siteId: 666,
heartBeatTimer: 5,
disableCookies: true,
debug: false,
}),
]
});
Make the package available in your local environment:
pnpm link .
npm link
Go to the demo project and link the package:
pnpm link astro-matomo
npm link astro-matomo
Start the dev server:
pnpm run dev
npm run dev
FAQs
Matomo integration for Astro
The npm package astro-matomo receives a total of 283 weekly downloads. As such, astro-matomo popularity was classified as not popular.
We found that astro-matomo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.