starlight-gtm
v0.0.9
Published
Starlight plugin for Google Tag Manager
Maintainers
Readme
Starlight GTM
This project is under active development, ckeck back soon!
Starlight plugin to add Google Tag Manager scripts to a Starlight project.
Getting Started
Add the package to your Starlight project
pnpm add starlight-gtmConfigure your astro.config.mjs
...
import starlightGTMPlugin from "starlight-gtm";
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "Starlight GTM",
plugins: [starlightGTMPlugin({ gtmId: "GTM-XXXXXXX" })],
sidebar: [...]
}),
],
});Contributing
This project is a pnpm monorepo. You need pnpm v10.
Clone the repo locally and run:
# install dependencies
pnpm i
# starts the development environment
pnpm dev