astro-google-analytics

1.0.3 • Public • Published

🚀  Astro — Analytics

NPM Downloads ISC License PRs Welcome
Astro TypeScript Prettier EditorConfig ESLint

Provides Google Analytics 4 snippet injection.

📦  Installation

pnpm i astro-google-analytics

🛠  Usage

---
import { GoogleAnalytics } from 'astro-google-analytics';

// ...
---
<!-- ... -->
<head>
  <!-- Place component inside `HEAD` tag -->

  <Analytics id="G-XXXXXXXXXX" />

  <!-- ... -->
</head>

Package Sidebar

Install

npm i astro-google-analytics

Weekly Downloads

199

Version

1.0.3

License

ISC

Unpacked Size

9.42 kB

Total Files

7

Last publish

Collaborators

  • julian.cataldo