# GA Cookies
> Documentation for GA Cookies in the web tracker.
> Source: https://docs.snowplow.io/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/plugins/ga-cookies/
> Documentation index: https://docs.snowplow.io/llms.txt
> Status: Previous version
> Current version: https://docs.snowplow.io/docs/sources/web-trackers/

If this plugin is used, the tracker will look for Google Analytics cookies (specifically the “\_\_utma”, “\_\_utmb”, “\_\_utmc”, “\_\_utmv”, “\_\_utmz”, and “\_ga” cookies) and combine their values into an event context which gets sent with every event.

## Installation

- `npm install @snowplow/browser-plugin-ga-cookies`
- `yarn add @snowplow/browser-plugin-ga-cookies`
- `pnpm add @snowplow/browser-plugin-ga-cookies`

## Initialization

```javascript
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { GaCookiesPlugin } from '@snowplow/browser-plugin-ga-cookies';

newTracker('sp1', '{{collector_url}}', { 
   appId: 'my-app-id', 
   plugins: [ GaCookiesPlugin() ],
});
```

### Context

Adding this plugin will automatically capture the following context:

| Context                                                                                                                                                          | Example                                                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [iglu:com.google.analytics/cookies/jsonschema/1-0-0](https://github.com/snowplow/iglu-central/blob/master/schemas/com.google.analytics/cookies/jsonschema/1-0-0) | ![Example GA cookies context JSON showing the \_ga cookie value](/assets/images/Screenshot-2021-03-30-at-22.12.03-bce35965ad595c17655aa0c561b4fe07.png) |
