---
title: "CampaignData"
slug: "cloud-sdk-search-campaigndata"
abstract: "The CampaignData interface represents UTM parameters in the search context. This data is used for filtering search results based on UTM parameters."
---
# CampaignData

|     |     |
| --- | --- |
| Type | Interface |
| Import path | `@sitecore-cloudsdk/search/browser` |

The [UTM parameters](https://en.wikipedia.org/wiki/UTM_parameters) in the URL of the webpage.

## Signature

```typescript
export interface CampaignData {
  campaign?: string;
  content?: string;
  medium?: string;
  source?: string;
  term?: string;
}
```

## Properties

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| `campaign` | `string` | Optional.<br><br>A product promotion or strategic campaign. | `"summer_sale"` |
| `content` | `string` | Optional.<br><br>The element the site visitor clicked that brought them to the website, such as a banner ad or a text link. | `"textlink"` |
| `medium` | `string` | Optional.<br><br>The type of link used, for example, pay-per-click or email. | `"email"` |
| `source` | `string` | Optional.<br><br>The website that sent the traffic. | `"newsletter"` |
| `term` | `string` | Optional.<br><br>Search terms the site visitor searched for. | `"running shoes"` |