> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# content_downloaded Event

> Track when a user downloads gated content like whitepapers, ebooks, or case studies.

Fires when a user downloads gated content. Use this event to measure content marketing effectiveness and identify marketing-qualified leads.

## JavaScript

```javascript theme={null}
window._upstack('track', 'content_downloaded', {
  contentId: 'wp_2024_analytics_guide',
  contentType: 'whitepaper',
  contentTitle: '2024 Marketing Analytics Guide',
  userEmail: 'prospect@company.com',
  companyName: 'Prospect Corp',
  source: 'blog_cta'
});
```

## Properties

| Property     | Type   | Required | Description                                                                |
| ------------ | ------ | -------- | -------------------------------------------------------------------------- |
| contentId    | string | Yes      | Unique content identifier                                                  |
| contentType  | string | No       | Type of content (`whitepaper`, `ebook`, `case_study`, `template`, `guide`) |
| contentTitle | string | No       | Human-readable content title                                               |
| userEmail    | string | No       | Downloader's email address                                                 |
| companyName  | string | No       | User's company name                                                        |
| source       | string | No       | Where the download was initiated                                           |

## When to Fire

* After gated content form submission
* After PDF/document download starts
* After content access is granted via email gate
