# Event specifications
> How to install and configure the event specifications plugin for version 3 of the Snowplow web tracker.
> Source: https://docs.snowplow.io/docs/sources/web-trackers/previous-versions/web-trackers-v3/tracking-events/event-specifications/
> Documentation index: https://docs.snowplow.io/llms.txt
> Status: Previous version
> Current version: https://docs.snowplow.io/docs/sources/web-trackers/

The plugin allows you to integrate with Event Specifications for a selected set of plugins. The configuration for the plugin should be retrieved directly from your [tracking plan](/docs/fundamentals/tracking-plans/) in [Snowplow Console](https://console.snowplowanalytics.com).

The plugin will automatically add an Event Specification context to the events matching the configuration added.

> **Note:** The plugin is available since version 3.23 of the tracker.

## Install plugin

**JavaScript (tag):**

| Tracker Distribution | Included |
| -------------------- | -------- |
| `sp.js`              | ❌        |
| `sp.lite.js`         | ❌        |

**Download:**

|                                             |                                                                                                                         |
| ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Download from GitHub Releases (Recommended) | [Github Releases (plugins.umd.zip)](https://github.com/snowplow/snowplow-javascript-tracker/releases)                   |
| Available on jsDelivr                       | [jsDelivr](https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-event-specifications@3/dist/index.umd.min.js) (latest) |
| Available on unpkg                          | [unpkg](https://unpkg.com/@snowplow/browser-plugin-event-specifications@3/dist/index.umd.min.js) (latest)               |

```javascript
window.snowplow(
    'addPlugin',
    'https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-event-specifications@3/dist/index.umd.min.js',
    ['eventSpecifications', 'EventSpecificationsPlugin']
);
```

**Browser (npm):**

- `npm install @snowplow/browser-plugin-event-specifications@3`
- `yarn add @snowplow/browser-plugin-event-specifications@3`
- `pnpm add @snowplow/browser-plugin-event-specifications@3`

```javascript
import { newTracker } from '@snowplow/browser-tracker';
import { WebVitalsPlugin } from '@snowplow/browser-plugin-event-specifications';

newTracker('sp1', '{{collector_url}}', {
   appId: 'my-app-id',
   plugins: [ EventSpecificationsPlugin(/* plugin configuration */) ],
});
```

***

## Configuration

The configuration of the plugin would be in the form of:

**JavaScript (tag):**

```javascript
window.snowplow(
    'addPlugin',
    'https://cdn.jsdelivr.net/npm/@snowplow/browser-plugin-event-specifications@3/dist/index.umd.min.js',
    ['eventSpecifications', 'EventSpecificationsPlugin'],
    [
        {
            [Plugin integration name]: {
                /* Key value pairs of event names and event specification ids */
            },
            /* More integrations */
        }
    ]
);
```

**Browser (npm):**

```javascript
EventSpecificationsPlugin({
    [Plugin integration name]: {
        /* Key value pairs of event names and event specification ids */
    },
    /* More integrations */
});
```

***

You can retrieve the configuration for your Event Specifications directly from your Tracking Plan after clicking on the `Implement tracking` button.

![The Media Web data product page in Snowplow Console showing the Event specifications section with an arrow highlighting the \&quot;Implement tracking\&quot; button, and a list of event specifications including Ad Break End Event, Ad Break Start Event, and Ad Click Event](/assets/images/implement_tracking-237d544d543211d13699e36aac03fc1c.png)
