Skip to content

GoogleAnalytics

This component is used to add Google Analytics to your Astro project.

Import

Terminal window
import { GoogleAnalytics } from "@aeonkit/astro";

Usage

Terminal window
<GoogleAnalytics trackingId="UA-123456789-1" />

Props

title

trackingId

string

The tracking ID provided by Google Analytics. This is required to track your site's data.