🚀  Astro — Analytics


Provides Google Analytics 4 snippet injection.

Keywords:

  • astro
  • astro-component
  • google
  • analytics
  • snippet
  • ga4
  • javascript

🚀  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>

Changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.3 (2023-01-05)

Note: Version bump only for package astro-google-analytics

1.0.2 (2022-11-19)

Note: Version bump only for package astro-google-analytics

1.0.1 (2022-10-17)

Bug Fixes

  • remove package prefix, simplify import method (73bd31b)

0.11.7 (2022-10-13)

Bug Fixes

  • add missing props importer (68e68e9)

0.11.6 (2022-09-22)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.11.5 (2022-08-20)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.11.4 (2022-08-06)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.11.3 (2022-07-26)

Bug Fixes

  • incorrect property id variable (25bfd35)

0.11.2 (2022-07-24)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.11.1 (2022-07-18)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.11.0 (2022-06-28)

Features

  • better defaults properties (cc55aec)

0.10.4 (2022-06-26)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.10.3 (2022-06-25)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.10.2 (2022-06-21)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.10.1 (2022-06-20)

Note: Version bump only for package @julian_cataldo/astro-analytics

0.10.0 (2022-06-19)

Features

  • init app analytics component (f76c86e)
...

⚠️  Having an issue? / 🗣   Wanna share feedback or suggestion?

✍️  Open an Issue or a Pull Request   on GitHub -or-   Contact me   on my Website.