
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
astro-umami-analytics
Advanced tools
An Astro component for easy integration of Umami analytics into your Astro projects.
To install astro-umami-analytics, run the following command in your project directory:
npm install astro-umami-analytics
To use the Umami component in your Astro project, follow these steps:
---
import { Umami } from "astro-umami-analytics";
---
<head> section, providing your Umami website ID:<head>
<!-- Other head elements -->
<Umami id="your-umami-website-id" />
</head>
Here's a complete example of how to use the Umami component in an Astro layout:
---
import { ViewTransitions } from "astro:transitions";
import { Umami } from "astro-umami-analytics";
interface Props {
title: string;
description: string;
}
const { title, description } = Astro.props;
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<ViewTransitions />
<Umami id="your-umami-website-id" />
</head>
<body>
<slot />
</body>
</html>
Make sure to replace "your-umami-website-id" with your actual Umami website ID.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
FAQs
Astro component for easy integration of Umami analytics
We found that astro-umami-analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.