---
title: Google Analytics
description: Wire Google Analytics into the site — consent, events, and conversions.
order: 1
---

# vibe21-add-google-analytics

Adds analytics as part of the build, not as a plugin sprinkled on afterwards.

This page describes the intended skill. It is not in the current plugin yet.

## When to use it

Use it when the site needs measurement. Give the agent a measurement ID. You get consent, events, and conversions.

Skip it on a site that must not load a third-party analytics script.

## How to run it

```
/vibe21-add-google-analytics
```

Have the Google Analytics measurement ID ready. The agent asks for anything it cannot find.

## What happens

- The tracking script is installed in the site shell.
- Consent is wired so the tag does not run before the visitor agrees.
- Events and conversions follow the same pattern on every page.

You do not paste snippets into individual layouts. One skill, one wiring, the whole site.
