# Ad Tracking
> Documentation for tracking Ad Tracking with the web tracker.
> Source: https://docs.snowplow.io/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/plugins/ad-tracking/
> Documentation index: https://docs.snowplow.io/llms.txt
> Status: Previous version
> Current version: https://docs.snowplow.io/docs/sources/web-trackers/

## Installation

- `npm install @snowplow/browser-plugin-ad-tracking`
- `yarn add @snowplow/browser-plugin-ad-tracking`
- `pnpm add @snowplow/browser-plugin-ad-tracking`

## Initialization

```javascript
import { newTracker, trackPageView } from '@snowplow/browser-tracker';
import { AdTrackingPlugin, trackAdClick } from '@snowplow/browser-plugin-ad-tracking';

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

### Functions

|                     |                                                                                                                               |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `trackAdImpression` | [Documentation](/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/tracking-events/#trackAdImpression) |
| `trackAdClick`      | [Documentation](/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/tracking-events/#trackAdClick)      |
| `trackAdConversion` | [Documentation](/docs/sources/web-trackers/previous-versions/browser-tracker-v3-reference/tracking-events/#trackAdConversion) |

### Context

This plugin does not add any additional data to context of an event.
