astro-google-analytics
v1.0.3
Published
Provides Google Analytics 4 snippet injection.
Downloads
518
Maintainers
Readme
🚀 Astro — Analytics
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>